Skip to content

Commit

Permalink
viorng: Enforce driver isolation in INF files
Browse files Browse the repository at this point in the history
Resolve: https://issues.redhat.com/browse/RHEL-26216

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 authored and YanVugenfirer committed Mar 6, 2024
1 parent 8f102e6 commit ad5783a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions viorng/viorng/viorng.inf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ CatalogFile = viorng.cat
PnpLockdown = 1
DriverVer =01/01/2008,0.0.0.1 ; this line will be replaced with stampinf

;
; Bcrypt always looking for provider DLL at system32 directory
; Check that provider works fine on both client and server windows
; before moving VirtRng_Provider_CopyFiles destination
; Related documentation
; https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/ns-bcrypt-crypt_image_reg
; pszImage - A pointer to a null-terminated Unicode string that contains only the file name of the provider module.
;
[DestinationDirs]
DefaultDestDir = 12
DefaultDestDir = 13
VirtRng_Provider_CopyFiles = 11

[SourceDisksNames]
Expand Down Expand Up @@ -74,7 +82,7 @@ DisplayName = %VirtRng.Service%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\viorng.sys
ServiceBinary = %13%\viorng.sys
LoadOrderGroup = Extended Base
AddReg = DmaRemappingCompatible.Reg

Expand Down

0 comments on commit ad5783a

Please sign in to comment.