Skip to content

Commit 91a2ce5

Browse files
gaojiaqi7mxu9
authored andcommitted
OvmfPkg: set image protection to be default
The default value of PcdImageProtectionPolicy is 2, which will enable the protection policy on image from firmware volume. Then the code section will be set to read-only, and the data section will be set to non-executable. Signed-off-by: Jiaqi Gao <[email protected]>
1 parent 8772f3f commit 91a2ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OvmfPkg/OvmfPkgX64.dsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631

632632
# Noexec settings for DXE.
633633
# TDX doesn't allow us to change EFER so make sure these are disabled
634-
gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000000
634+
#gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000000
635635
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0x00000000
636636
# Noexec settings for DXE.
637637
# TDX doesn't allow us to change EFER so make sure these are disabled

0 commit comments

Comments
 (0)