guix-commits
[Top][All Lists]
Advanced

[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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]