git.iko.soy/typeable/nixpkgs
on master help sign in
linux config: enable the Yama LSM (#14392)

The Yama Linux Security Module restricts the use of ptrace so that processes cannot ptrace processes that are not their children. This prevents attackers from compromising one user-level processes and snooping on the memory and runtime state of other processes owned by the same user.

commita000ed181cd8fe23809892c13393491dfeeba1d1 authorAneesh Agrawal <aneeshusa@gmail.com> dateSat 8 Oct 2016, 10:40 (10 years ago) parentce7739a
1 file changed+1
pkgs/os-specific/linux/kernel/common-config.nix+1
pkgs/os-specific/linux/kernel/common-config.nix+1
@@ -284,6 +284,7 @@ with stdenv.lib;
284284 RANDOMIZE_BASE? y
285285 STRICT_DEVMEM y # Filter access to /dev/mem
286286 SECURITY_SELINUX_BOOTPARAM_VALUE 0 # Disable SELinux by default
287+ SECURITY_YAMA y # Prevent processes from ptracing non-children processes
287288 DEVKMEM n # Disable /dev/kmem
288289 ${if versionOlder version "3.14" then ''
289290 CC_STACKPROTECTOR? y # Detect buffer overflows on the stack