mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-04 15:28:06 +07:00
Restrict the userfaultfd() syscall to root
This commit is contained in:
@ -133,3 +133,9 @@ kernel.sysrq=132
|
||||
##
|
||||
## https://lkml.org/lkml/2019/4/15/890
|
||||
dev.tty.ldisc_autoload=0
|
||||
|
||||
## Restrict the userfaultfd() syscall to root as it can make heap sprays
|
||||
## easier.
|
||||
##
|
||||
## https://duasynt.com/blog/linux-kernel-heap-spray
|
||||
vm.unprivileged_userfaultfd=0
|
||||
|
Reference in New Issue
Block a user