mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Doh
This commit is contained in:
parent
988bf59421
commit
f02c52e3d4
2 changed files with 2 additions and 11 deletions
|
@ -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%"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue