Merge pull request #65 from madaidan/userfaultfd

Restrict the userfaultfd() syscall to root
This commit is contained in:
Patrick Schleizer 2020-02-29 12:28:32 +00:00 committed by GitHub
commit 453aa8a4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

2
debian/control vendored
View File

@ -125,6 +125,8 @@ Description: enhances misc security settings
Secure Attention Key.
.
* Restricts loading line disciplines to `CAP_SYS_MODULE`.
.
* Restricts the `userfaultfd()` syscall to root.
.
Improve Entropy Collection
.

View File

@ -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