From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EXCH2-CH.activfinancial.com (exch2-ch.activfinancial.com [66.150.109.182]) by dpdk.org (Postfix) with ESMTP id 65C773576 for ; Thu, 28 Feb 2019 16:38:13 +0100 (CET) Received: from ukserver.activfinancial.com (172.16.13.2) by EXCH2-CH.activfinancial.com (10.193.181.109) with Microsoft SMTP Server id 14.3.389.1; Thu, 28 Feb 2019 10:38:07 -0500 Received: from activfinancial.com (MARTIN-BIRKS2.activfinancial.com [172.16.13.180]) by ukserver.activfinancial.com (Postfix) with ESMTP id 019223D9 for ; Thu, 28 Feb 2019 15:38:07 +0000 (GMT) From: Martin Birks To: Date: Thu, 28 Feb 2019 15:38:03 +0000 Message-ID: <20190228153803.22756-3-martin.birks@activfinancial.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20190228153803.22756-1-martin.birks@activfinancial.com> References: <20190228153803.22756-1-martin.birks@activfinancial.com> MIME-Version: 1.0 Content-Type: text/plain 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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2019 15:38:13 -0000 --- 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