diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-05-29 11:34:24 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-05-29 16:14:10 +0200 |
commit | 6cc6c15a2d50d0021d7242e9806ed6d54538de17 (patch) | |
tree | e9a5fbd03cd6c1e0a1d8b68fff784f2d0f29dee7 /shell.nix | |
parent | 6e01ecd112dce8d8bbe46c839f982892a3ffb589 (diff) |
Add a seccomp filter to prevent creating setuid/setgid binaries
This prevents builders from setting the S_ISUID or S_ISGID bits,
preventing users from using a nixbld* user to create a setuid/setgid
binary to interfere with subsequent builds under the same nixbld* uid.
This is based on aszlig's seccomp code
(47f587700d646f5b03a42f2fa57c28875a31efbe).
Reported by Linus Heckemann.
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,7 +22,8 @@ with import ./release-common.nix { inherit pkgs; }; # For nix-perl perl perlPackages.DBDSQLite - ]; + ] + ++ lib.optional stdenv.isLinux libseccomp; inherit configureFlags; |