mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:51:55 +00:00
[NTOSKRNL]
IoCreateDevice: Assign SePublicOpenUnrestrictedSd to new devices. CORE-9176 svn path=/trunk/; revision=67882
This commit is contained in:
parent
7858fab04b
commit
6c9074c225
1 changed files with 2 additions and 2 deletions
|
@ -846,14 +846,14 @@ IoCreateDevice(IN PDRIVER_OBJECT DriverObject,
|
|||
/* Initialize the name */
|
||||
RtlInitUnicodeString(&AutoName, AutoNameBuffer);
|
||||
DeviceName = &AutoName;
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialize the Object Attributes */
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
DeviceName,
|
||||
OBJ_KERNEL_HANDLE,
|
||||
NULL,
|
||||
NULL);
|
||||
SePublicOpenUnrestrictedSd);
|
||||
|
||||
/* Honor exclusive flag */
|
||||
if (Exclusive) ObjectAttributes.Attributes |= OBJ_EXCLUSIVE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue