mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +01: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. (cherry picked from commit6cc6c15a2d)
This commit is contained in:
parent
a8d13e66ee
commit
e296b8884e
5 changed files with 67 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ let
|
|||
[ curl bison flex perl libxml2 libxslt bzip2 xz
|
||||
dblatex (dblatex.tex or tetex) nukeReferences pkgconfig sqlite libsodium
|
||||
docbook5 docbook5_xsl
|
||||
libseccomp
|
||||
] ++ lib.optional (!lib.inNixShell) git;
|
||||
|
||||
configureFlags = ''
|
||||
|
|
@ -85,6 +86,7 @@ let
|
|||
|
||||
buildInputs =
|
||||
[ curl perl bzip2 xz openssl pkgconfig sqlite boehmgc ]
|
||||
++ lib.optional stdenv.isLinux libseccomp
|
||||
++ lib.optional stdenv.isLinux libsodium;
|
||||
|
||||
configureFlags = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue