[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

Message ID 20190228154431.23704-3-martin.birks@activfinancial.com (mailing list archive)
State Not Applicable, archived
Delegated to: Thomas Monjalon
Headers
Series dpdk-draft-windows X710-DA2 compatibility |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation fail apply issues

Commit Message

Martin Birks Feb. 28, 2019, 3:44 p.m. UTC
  Signed-off-by: Martin Birks <martin.birks@activfinancial.com>
---
 kernel/windows/netuio/netuio_dev.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

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);