[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
116/376: Doh
From: |
Ludovic Courtès |
Subject: |
116/376: Doh |
Date: |
Wed, 28 Jan 2015 22:04:25 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit f02c52e3d4065cb8a264fc55eb9fa14d2d0337c8
Author: Eelco Dolstra <address@hidden>
Date: Tue Aug 5 10:19:57 2014 +0200
Doh
---
src/libstore/globals.hh | 9 ---------
src/nix-daemon/nix-daemon.cc | 4 ++--
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index 743d206..55f082e 100644
--- a/src/libstore/globals.hh
+++ b/src/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/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 77c63f1..69d5fd8 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -746,10 +746,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%"
- 104/376: Make readDirectory() return inode / file type, (continued)
- 104/376: Make readDirectory() return inode / file type, Ludovic Courtès, 2015/01/28
- 106/376: Eliminate redundant copy, Ludovic Courtès, 2015/01/28
- 110/376: Make chroot builds easier to set up, Ludovic Courtès, 2015/01/28
- 109/376: Speed up nix-shell, Ludovic Courtès, 2015/01/28
- 121/376: nix-install-package: Use extra-binary-caches, Ludovic Courtès, 2015/01/28
- 119/376: Add support for order-only dependencies, Ludovic Courtès, 2015/01/28
- 118/376: install-nix-from-closure.sh: Use https channel if possible, Ludovic Courtès, 2015/01/28
- 114/376: Refactor, Ludovic Courtès, 2015/01/28
- 117/376: Remove unnecessary call to addTempRoot(), Ludovic Courtès, 2015/01/28
- 115/376: Move some options out of globals, Ludovic Courtès, 2015/01/28
- 116/376: Doh,
Ludovic Courtès <=
- 112/376: Add option ‘build-extra-chroot-dirs’, Ludovic Courtès, 2015/01/28
- 111/376: Get rid of "killing <pid>" message for unused build hooks, Ludovic Courtès, 2015/01/28
- 129/376: Remove log2html.xsl and friends, Ludovic Courtès, 2015/01/28
- 122/376: Warn about untrusted binary caches in extra-binary-caches, Ludovic Courtès, 2015/01/28
- 113/376: Update manual, Ludovic Courtès, 2015/01/28
- 126/376: Handle compound single dash options properly, Ludovic Courtès, 2015/01/28
- 124/376: Fix warning about non-existant -I directories, Ludovic Courtès, 2015/01/28
- 127/376: Use regular file GC roots if possible, Ludovic Courtès, 2015/01/28
- 128/376: nix-log2xml: Handle UTF-8 characters, Ludovic Courtès, 2015/01/28
- 132/376: nix-shell: Use $XDG_RUNTIME_DIR, Ludovic Courtès, 2015/01/28