Save more hardening sysctls for TODO
authorAlexander Popov <alex.popov@linux.com>
Thu, 28 Nov 2019 16:28:52 +0000 (19:28 +0300)
committerAlexander Popov <alex.popov@linux.com>
Thu, 28 Nov 2019 16:28:52 +0000 (19:28 +0300)
kconfig-hardened-check.py

index 97cb91357c688f8d374f4835adce693739aee564..5c60fb7a63d02e0a8f64fb9a27bf804373c969ce 100755 (executable)
 #    kptr_restrict=2
 #    vm.unprivileged_userfaultfd=0
 #    kernel.perf_event_paranoid=3
-#    kernel.yama.ptrace_scope=1
+#    kernel.yama.ptrace_scope=1 (or even 3?)
 #    kernel.unprivileged_bpf_disabled=1
+#    fs.suid_dumpable=0
+#    fs.protected_symlinks = 1
+#    fs.protected_hardlinks = 1
+#    fs.protected_fifos = 2
+#    fs.protected_regular = 2
 
 import sys
 from argparse import ArgumentParser