Skip to content
Snippets Groups Projects
  1. Jul 14, 2017
  2. Jul 11, 2017
  3. Jul 10, 2017
  4. Jul 09, 2017
  5. Jul 07, 2017
  6. Jul 06, 2017
  7. Jul 04, 2017
    • Eelco Dolstra's avatar
      Add X32 to the seccomp filter · a3dc1e65
      Eelco Dolstra authored
      Fixes #1432.
      a3dc1e65
    • Eelco Dolstra's avatar
      Sort substituters by priority · 42c5774e
      Eelco Dolstra authored
      Fixes #1438.
      42c5774e
    • Eelco Dolstra's avatar
      getDefaultSubstituters(): Simplify initialisation · b7203e85
      Eelco Dolstra authored
      As shlevy pointed out, static variables in C++11 have thread-safe
      initialisation.
      b7203e85
    • Eelco Dolstra's avatar
      Add allow-new-privileges option · 6cf23c3e
      Eelco Dolstra authored
      This allows builds to call setuid binaries. This was previously
      possible until we started using seccomp. Turns out that seccomp by
      default disallows processes from acquiring new privileges. Generally,
      any use of setuid binaries (except those created by the builder
      itself) is by definition impure, but some people were relying on this
      ability for certain tests.
      
      Example:
      
        $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --no-allow-new-privileges
        builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 2 log lines:
          cannot raise the capability into the Ambient set
          : Operation not permitted
      
        $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --allow-new-privileges
        builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 6 log lines:
          PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
          64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=15.2 ms
      
      Fixes #1429.
      6cf23c3e
    • Eelco Dolstra's avatar
    • Eelco Dolstra's avatar
      Support base-64 hashes · c0015e87
      Eelco Dolstra authored
      Also simplify the Hash API.
      
      Fixes #1437.
      c0015e87
Loading