2003-11-19 11:35:41 +00:00
|
|
|
SUBDIRS = bin2c boost libutil libstore libmain nix-store nix-hash \
|
2006-11-30 19:19:59 +00:00
|
|
|
libexpr nix-instantiate nix-env nix-worker nix-log2xml bsdiff-4.3
|
* Setuid support for sharing a Nix installation between multiple
users.
If the configure flag `--enable-setuid' is used, the Nix programs
nix-env, nix-store, etc. are installed with the setuid bit turned on
so that they are executed as the user and group specified by
`--with-nix-user=USER' and `--with-nix-group=GROUP', respectively
(with defaults `nix' and `nix').
The setuid programs drop all special privileges if they are executed
by a user who is not a member of the Nix group.
The setuid feature is a quick hack to enable sharing of a Nix
installation between users who trust each other. It is not
generally secure, since any user in the Nix group can modify (by
building an appropriate derivation) any object in the store, and for
instance inject trojans into binaries used by other users.
The setuid programs are owned by root, not the Nix user. This is
because on Unix normal users cannot change the real uid, only the
effective uid. Many programs don't work properly when the real uid
differs from the effective uid. For instance, Perl will turn on
taint mode. However, the setuid programs drop all root privileges
immediately, changing all uids and gids to the Nix user and group.
2004-08-20 14:49:05 +00:00
|
|
|
|
2004-10-29 11:22:49 +00:00
|
|
|
EXTRA_DIST = aterm-helper.pl
|
|
|
|
|
2006-11-29 21:06:58 +00:00
|
|
|
#SETUID_PROGS = nix-store nix-instantiate nix-env
|