grsecurity module: permit chmod +s in sandboxed builds
While useless, some builds may dabble with setuid bits (e.g.,
util-linux), which breaks under grsec. In the interest of user
friendliness, we once again compromise by disabling an otherwise useful
feature ...
Closes https://github.com/NixOS/nixpkgs/issues/17501
commit7fd99066c44c72c1b78d3bf6626bfffa96162902
authorJoachim Fasting <joachifm@fastmail.fm>
dateMon 15 Aug 2016, 19:55 (10 years ago)
parent9062c67
nixos/modules/security/grsecurity.nix+1
@@ -119,6 +119,7 @@ in
119119 "kernel.grsecurity.chroot_deny_chroot" = mkForce 0;
120120 "kernel.grsecurity.chroot_deny_mount" = mkForce 0;
121121 "kernel.grsecurity.chroot_deny_pivot" = mkForce 0;
122+ "kernel.grsecurity.chroot_deny_chmod" = mkForce 0;
122123 } // optionalAttrs containerSupportRequired {
123124 # chroot(2) restrictions that conflict with NixOS lightweight containers
124125 "kernel.grsecurity.chroot_deny_chmod" = mkForce 0;