lix-releng-staging/doc/manual
Eelco Dolstra 6cf23c3e8f
Add allow-new-privileges option
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.
2017-07-04 15:48:25 +02:00
..
advanced-topics Remove $NIX_BUILD_HOOK and $NIX_CURRENT_LOAD 2017-05-01 17:30:16 +02:00
command-ref Add allow-new-privileges option 2017-07-04 15:48:25 +02:00
expressions Merge pull request #1393 from pyrtsa/patch-1 2017-05-29 11:32:06 +02:00
figures Fix corrupt PNG 2013-08-21 12:53:51 +02:00
glossary Restructuring the Nix manual 2014-08-27 18:41:09 +02:00
images/callouts Add docbook icons to the distribution 2014-04-09 14:52:43 +02:00
installation Remove Perl dependency listing in doc 2017-02-07 15:56:32 -05:00
introduction Replace readline by linenoise 2017-05-10 18:37:42 +02:00
packages Remove nix-install-package. 2016-08-10 08:20:51 -04:00
release-notes OS X -> macOS 2017-06-14 23:28:06 +02:00
troubleshooting ReiserFS -> ext4 2014-12-13 23:23:19 +01:00
hacking.xml Add shell.nix 2016-12-06 17:17:29 +01:00
local.mk Add a new option to disable documentation generation at configure time 2016-09-20 14:34:43 +00:00
manual.xml edition -> subtitle 2015-01-02 12:53:32 +01:00
nix-lang-ref.xml * Various updates. 2009-11-05 09:07:43 +00:00
quote-literals.xsl Generate release notes again 2014-03-12 14:24:29 +01:00
schemas.xml * Document setuid Nix installs. 2004-10-31 17:08:48 +00:00
style.css Style 2014-12-13 23:21:14 +01:00