[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/64: When running as root, use build users by default
From: |
Ludovic Courtès |
Subject: |
42/64: When running as root, use build users by default |
Date: |
Mon, 05 Jan 2015 16:39:05 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit ada3e3fa15bc14aebb2bafd1240c15cf1fd99351
Author: Eelco Dolstra <address@hidden>
Date: Fri May 2 12:46:03 2014 +0200
When running as root, use build users by default
This removes the need to have a nix.conf, and prevents people from
accidentally running Nix builds as root.
---
src/libstore/globals.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 86fa567..c359367 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -40,6 +40,7 @@ Settings::Settings()
useSQLiteWAL = true;
syncBeforeRegistering = false;
useSubstitutes = true;
+ buildUsersGroup = getuid() == 0 ? "nixbld" : "";
useChroot = false;
useSshSubstituter = false;
impersonateLinux26 = false;
- 53/64: fix typo, (continued)
- 53/64: fix typo, Ludovic Courtès, 2015/01/05
- 52/64: Shortcut already-hardlinked files, Ludovic Courtès, 2015/01/05
- 54/64: nix-instantiate --eval: Apply auto-arguments if the result is a function, Ludovic Courtès, 2015/01/05
- 47/64: Fix Debian tests, Ludovic Courtès, 2015/01/05
- 60/64: Merge branch 'master' of github.com:wmertens/nix, Ludovic Courtès, 2015/01/05
- 58/64: Use the inodes given by readdir directly, Ludovic Courtès, 2015/01/05
- 57/64: Remove redundant code, Ludovic Courtès, 2015/01/05
- 55/64: Prepare nix-mode to be uploaded to marmalade, Ludovic Courtès, 2015/01/05
- 56/64: Preload linked hashes to speed up lookups, Ludovic Courtès, 2015/01/05
- 63/64: lvlInfo -> lvlTalkative, Ludovic Courtès, 2015/01/05
- 42/64: When running as root, use build users by default,
Ludovic Courtès <=
- 59/64: Shortcut store files before lstat, Ludovic Courtès, 2015/01/05
- 64/64: Merge commit '8d5f472f2c49c79a0d3ae2e506f4d4d76224b328' into nix, Ludovic Courtès, 2015/01/05
- 61/64: Remove tab, Ludovic Courtès, 2015/01/05
- 62/64: nix-store --optimise: Remove bogus statistics, Ludovic Courtès, 2015/01/05