[dpdk-dev] [PATCH 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 at microsoft.com
Martin Birks
martin.birks at activfinancial.com
Thu Feb 28 16:44:31 CET 2019
Signed-off-by: Martin Birks <martin.birks at activfinancial.com>
---
kernel/windows/netuio/netuio_dev.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/windows/netuio/netuio_dev.c b/kernel/windows/netuio/netuio_dev.c
index f5d41cb65..1f01e2324 100644
--- a/kernel/windows/netuio/netuio_dev.c
+++ b/kernel/windows/netuio/netuio_dev.c
@@ -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);
--
2.18.0.windows.1
More information about the dev
mailing list