Skip to content

Commit 6e62be4

Browse files
author
RageLtMan
committed
Kernel Hardening: Linux Kernel Runtime Guard
Import the Linux Kernel Runtime Guard (LKRG) from OpenWall by Adam Zabrocki and and Alex Peslyak. LKRG provides additional tiers of mitigation by actively hashing and validating kernel memory regions, further restricting access to common LPE and escape vectors, as well as mechanisms for modifying the running kernel commonly used to bypass LSMs. LKRG can be built directly into the kernel to provide enforcement from early-boot, but should be deployed as a module initially while tunables and operational stability are ironed out and validated on this platform. More information is available at the projects homepage: https://www.openwall.com/lkrg/ and in their source repo: https://github.com/openwall/lkrg
1 parent a32997c commit 6e62be4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git i/security/Kconfig w/security/Kconfig
2+
index 0d798a1f4..f53076cd1 100644
3+
--- i/security/Kconfig
4+
+++ w/security/Kconfig
5+
@@ -321,6 +321,7 @@ source security/loadpin/Kconfig
6+
source security/yama/Kconfig
7+
8+
source security/integrity/Kconfig
9+
+source security/lkrg/Kconfig
10+
11+
choice
12+
prompt "Default security module"
13+
diff --git i/security/Makefile w/security/Makefile
14+
index 507ac8c52..c2a7493be 100644
15+
--- i/security/Makefile
16+
+++ w/security/Makefile
17+
@@ -33,3 +33,8 @@ obj-$(CONFIG_INTEGRITY) += integrity/
18+
19+
# Allow the kernel to be locked down
20+
obj-$(CONFIG_LOCK_DOWN_KERNEL) += lock_down.o
21+
+
22+
+# LKRG file list
23+
+subdir-$(CONFIG_SECURITY_LKRG) += lkrg
24+
+obj-$(CONFIG_SECURITY_LKRG) += lkrg/
25+
+

0 commit comments

Comments
 (0)