diff mbox series

[ovs-dev,1/2] datapath-windows: ovsext.inf: Add PnpLockdown to the driver info file

Message ID 20240806010558.505-1-aserdean@ovn.org
State Changes Requested
Headers show
Series [ovs-dev,1/2] datapath-windows: ovsext.inf: Add PnpLockdown to the driver info file | expand

Checks

Context Check Description
ovsrobot/apply-robot warning apply and check: warning
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation fail test: fail

Commit Message

Alin Serdean Aug. 6, 2024, 1:05 a.m. UTC
While compiling with the latest WDK/SDK 10.0.26100.1, MSVC complains:
error 1324: [Version] section should specify PnpLockdown=1 to prevent external apps from modifying
       installed driver files.

Add PnpLockdown = 1

more information: https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-version-section

Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
---
 datapath-windows/ovsext/ovsext.inf | 1 +
 1 file changed, 1 insertion(+)

Comments

Ilya Maximets Aug. 21, 2024, 1:09 p.m. UTC | #1
On 8/6/24 03:05, Alin Gabriel Serdean wrote:
> While compiling with the latest WDK/SDK 10.0.26100.1, MSVC complains:
> error 1324: [Version] section should specify PnpLockdown=1 to prevent external apps from modifying
>        installed driver files.

It's better to keep lines short.  E.g. 72 chars is a typical length for commit
messages.  The error message can be wrapped a little earlier for that.

Also, as the checkpatch points out, the subject line needs a period at the end.

> 
> Add PnpLockdown = 1

A period would be nice.

> 
> more information: https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-version-section

May be better to move the link to a separate line to keep it shorter.

> 
> Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
> ---
>  datapath-windows/ovsext/ovsext.inf | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/datapath-windows/ovsext/ovsext.inf b/datapath-windows/ovsext/ovsext.inf
> index e68b94a36..7a9fed36d 100644
> --- a/datapath-windows/ovsext/ovsext.inf
> +++ b/datapath-windows/ovsext/ovsext.inf
> @@ -4,6 +4,7 @@
>  
>  [version]
>  Signature   = "$Windows NT$"
> +PnpLockdown = 1
>  Class       = NetService
>  ClassGUID   = {4D36E974-E325-11CE-BFC1-08002BE10318}
>  Provider    = %OVS%

The change seems reasonable in general.  So, with the 'Author' and the
commit message adjusted:

Acked-by: Ilya Maximets <i.maximets@ovn.org>
diff mbox series

Patch

diff --git a/datapath-windows/ovsext/ovsext.inf b/datapath-windows/ovsext/ovsext.inf
index e68b94a36..7a9fed36d 100644
--- a/datapath-windows/ovsext/ovsext.inf
+++ b/datapath-windows/ovsext/ovsext.inf
@@ -4,6 +4,7 @@ 
 
 [version]
 Signature   = "$Windows NT$"
+PnpLockdown = 1
 Class       = NetService
 ClassGUID   = {4D36E974-E325-11CE-BFC1-08002BE10318}
 Provider    = %OVS%