about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-02-07T20·09+0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-02-07T20·09+0100
commita56637205a0f4cfa271e16cec15e2a08f79f496d (patch)
treeba2f0b910f71abd7872aafa4f5c7be64fdf7f17b
parent47ad88099b1cd2b19bdf3eef35c21baf35cc7e82 (diff)
parent88b5d0c8e89afefbc547b6243c5aa5a3ec8176e9 (diff)
Merge branch 'master' of https://github.com/NixOS/nix into parallel-xz
-rw-r--r--src/nix-daemon/nix-daemon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index b5d49b6428ac..0e5ff370cf74 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -994,7 +994,7 @@ static void daemonLoop(char * * argv)
             if (matchUser(user, group, trustedUsers))
                 trusted = true;
 
-            if (!trusted && !matchUser(user, group, allowedUsers))
+            if ((!trusted && !matchUser(user, group, allowedUsers)) || group == "nixbld")
                 throw Error(format("user '%1%' is not allowed to connect to the Nix daemon") % user);
 
             printInfo(format((string) "accepted connection from pid %1%, user %2%" + (trusted ? " (trusted)" : ""))