[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
89/118: Doh
From: |
Ludovic Courtès |
Subject: |
89/118: Doh |
Date: |
Tue, 19 May 2015 14:45:53 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit 1820845c44c8cbe1121e78d5f16e7778532477f6
Author: Eelco Dolstra <address@hidden>
Date: Tue Aug 5 10:19:57 2014 +0200
Doh
---
nix/libstore/globals.hh | 9 ---------
nix/nix-daemon/nix-daemon.cc | 4 ++--
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/nix/libstore/globals.hh b/nix/libstore/globals.hh
index 743d206..55f082e 100644
--- a/nix/libstore/globals.hh
+++ b/nix/libstore/globals.hh
@@ -203,15 +203,6 @@ struct Settings {
/* Whether the importNative primop should be enabled */
bool enableImportNative;
- /* List of users that have elevated rights in the Nix daemon, such
- as the ability to specify additional binary caches, or to
- import unsigned NARs. */
- Strings trustedUsers;
-
- /* List of users that are allowed to connect to the daemon, in
- addition to the trusted users. These have normal rights. */
- Strings allowedUsers;
-
private:
SettingsMap settings, overrides;
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 422c7f6..88edb04 100644
--- a/nix/nix-daemon/nix-daemon.cc
+++ b/nix/nix-daemon/nix-daemon.cc
@@ -885,10 +885,10 @@ static void daemonLoop()
Strings trustedUsers = settings.get("trusted-users",
Strings({"root"}));
Strings allowedUsers = settings.get("allowed-users",
Strings({"*"}));
- if (matchUser(user, group, settings.trustedUsers))
+ if (matchUser(user, group, trustedUsers))
trusted = true;
- if (!trusted && !matchUser(user, group, settings.allowedUsers))
+ if (!trusted && !matchUser(user, group, allowedUsers))
throw Error(format("user `%1%' is not allowed to connect to
the Nix daemon") % user);
printMsg(lvlInfo, format((string) "accepted connection from pid
%1%, user %2%"
- 77/118: nix-daemon: Less verbosity, (continued)
- 77/118: nix-daemon: Less verbosity, Ludovic Courtès, 2015/05/19
- 90/118: Remove unnecessary call to addTempRoot(), Ludovic Courtès, 2015/05/19
- 88/118: Move some options out of globals, Ludovic Courtès, 2015/05/19
- 83/118: Call commonChildInit() before doing chroot init, Ludovic Courtès, 2015/05/19
- 84/118: Remove ugly hack for detecting build environment setup errors, Ludovic Courtès, 2015/05/19
- 85/118: Get rid of "killing <pid>" message for unused build hooks, Ludovic Courtès, 2015/05/19
- 93/118: Reduce verbosity, Ludovic Courtès, 2015/05/19
- 92/118: Propagate remote timeouts properly, Ludovic Courtès, 2015/05/19
- 87/118: Refactor, Ludovic Courtès, 2015/05/19
- 79/118: Allow regular files as GC roots, Ludovic Courtès, 2015/05/19
- 89/118: Doh,
Ludovic Courtès <=
- 78/118: Remove some dead code, Ludovic Courtès, 2015/05/19
- 82/118: Eliminate redundant copy, Ludovic Courtès, 2015/05/19
- 95/118: Make hook shutdown more reliable, Ludovic Courtès, 2015/05/19
- 81/118: findRoots(): Prevent a call to lstat(), Ludovic Courtès, 2015/05/19
- 101/118: On Linux, disable address space randomization, Ludovic Courtès, 2015/05/19
- 91/118: Use regular file GC roots if possible, Ludovic Courtès, 2015/05/19
- 102/118: Remove bogus comment, Ludovic Courtès, 2015/05/19
- 80/118: Make readDirectory() return inode / file type, Ludovic Courtès, 2015/05/19
- 94/118: Doh, Ludovic Courtès, 2015/05/19
- 96/118: fix disappearing bash arguments, Ludovic Courtès, 2015/05/19