From: Martin Birks <martin.birks@activfinancial.com>
To: <dev@dpdk.org>
Subject: [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@microsoft.com
Date: Thu, 28 Feb 2019 15:38:03 +0000 [thread overview]
Message-ID: <20190228153803.22756-3-martin.birks@activfinancial.com> (raw)
In-Reply-To: <20190228153803.22756-1-martin.birks@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
next prev parent reply other threads:[~2019-02-28 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-28 15:38 [dpdk-dev] [PATCH 0/2] *** dpdk-draft-windows X710-DA2 compatibility *** Martin Birks
2019-02-28 15:38 ` [dpdk-dev] [PATCH 1/2] kernel/windows: Added support for X710-DA2 to inf file Martin Birks
2019-02-28 15:38 ` Martin Birks [this message]
2019-02-28 15:44 [dpdk-dev] [PATCH 0/2] dpdk-draft-windows X710-DA2 compatibility Martin Birks
2019-02-28 15:44 ` [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@microsoft.com Martin Birks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190228153803.22756-3-martin.birks@activfinancial.com \
--to=martin.birks@activfinancial.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).