kconfigcheck: Require support for Yama
This lets us prohibit non-ancestor ptrace access to running processes and their credentials via sysctl kernel.yama.ptrace_scope=1. Yama stacks correctly with SELinux. Arch Linux enables it and sets ptrace_scope=1 by default, see https://wiki.archlinux.org/title/Security#ptrace_scope. Note that SELinux also has the deny_ptrace mechanism to achieve similar things, but we're not shipping SELinux at the moment and we can opt to switch to deny_ptrace for enforcing this in the future if desired. See https://docs.kernel.org/admin-guide/LSM/Yama.html for more information. Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8582>
This commit is contained in:
parent
e1bc923bdb
commit
4402d4a28e
1 changed files with 1 additions and 0 deletions
|
|
@ -648,6 +648,7 @@ DM_VERITY = "m"
|
|||
|
||||
["category:hardening".">=0.0.0"."all"]
|
||||
SECURITY_DMESG_RESTRICT = "y"
|
||||
SECURITY_YAMA = "y"
|
||||
|
||||
# In 6.18+, CFI_CLANG is CFI
|
||||
["category:hardening".">=6.18_rc1"."x86_64 aarch64 armv7 riscv64"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue