[2/2] kernel/windows: set FILE_AUTOGENERATED_DEVICE_NAME to true so that SDDL string can be set successfully. Fixes: 9087d5ff8375 ("doc: change the Windows UIO driver's default security descriptor to admin only") Cc: haramakr@microsoft.com
Checks
Commit Message
Signed-off-by: Martin Birks <martin.birks@activfinancial.com>
---
kernel/windows/netuio/netuio_dev.c | 3 +++
1 file changed, 3 insertions(+)
@@ -33,6 +33,9 @@ netuio_create_device(_Inout_ PWDFDEVICE_INIT DeviceInit)
PAGED_CODE();
+ // Need to set a name for the device for SDDL string to work
+ WdfDeviceInitSetCharacteristics(DeviceInit, FILE_AUTOGENERATED_DEVICE_NAME, TRUE);
+
// Ensure that only administrators can access our device object.
status = WdfDeviceInitAssignSDDLString(DeviceInit, &SDDL_DEVOBJ_SYS_ALL_ADM_ALL);