mirror of
https://github.com/NixOS/nix
synced 2025-06-24 18:01:16 +02:00
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
(47f587700d
).
Reported by Linus Heckemann.
This commit is contained in:
parent
6e01ecd112
commit
6cc6c15a2d
5 changed files with 54 additions and 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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue