[NTOSKRNL]

IoCreateDevice: Assign SePublicOpenUnrestrictedSd to new devices.

CORE-9176

svn path=/trunk/; revision=67882
This commit is contained in:
Eric Kohl 2015-05-24 14:38:55 +00:00
parent 7858fab04b
commit 6c9074c225

View file

@ -846,14 +846,14 @@ IoCreateDevice(IN PDRIVER_OBJECT DriverObject,
/* Initialize the name */ /* Initialize the name */
RtlInitUnicodeString(&AutoName, AutoNameBuffer); RtlInitUnicodeString(&AutoName, AutoNameBuffer);
DeviceName = &AutoName; DeviceName = &AutoName;
} }
/* Initialize the Object Attributes */ /* Initialize the Object Attributes */
InitializeObjectAttributes(&ObjectAttributes, InitializeObjectAttributes(&ObjectAttributes,
DeviceName, DeviceName,
OBJ_KERNEL_HANDLE, OBJ_KERNEL_HANDLE,
NULL, NULL,
NULL); SePublicOpenUnrestrictedSd);
/* Honor exclusive flag */ /* Honor exclusive flag */
if (Exclusive) ObjectAttributes.Attributes |= OBJ_EXCLUSIVE; if (Exclusive) ObjectAttributes.Attributes |= OBJ_EXCLUSIVE;