]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Add RegistryOpenParametersKey
authorOwen Smith <owen.smith@cloud.com>
Fri, 7 Jun 2024 07:16:56 +0000 (08:16 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 1 Jul 2024 08:49:31 +0000 (09:49 +0100)
commite5cc4bf8aa4b171dde9e7cfa54461daa9ca7310d
tree66cafa508fd5903382d6a34715de499f0c86c6c8
parentb96a064701daf21c90bcd84a12c92ae26aad9d74
Add RegistryOpenParametersKey

Use IoOpenDriverRegistryKey to avoid opening an absolute registry path.
Driver Verifier can detect registry isolation violations when running WHQL
tests on Server 2025. The rule states that a driver may not open an absolute
registry key path. Use the specific API to open the 'Parameters' key with
KEY_READ when querying settings.

Signed-off-by: Owen Smith <owen.smith@cloud.com>
Cosmetic fix-up.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/common/registry.c
src/common/registry.h
src/xen/driver.c
src/xenbus/driver.c
src/xenfilt/driver.c