nix-daemon: allow setting builders to "" by any user (untrusted)

(cherry picked from commit a94a2eb1cb1c81e90a7529be5fecac27899a3442)
This commit is contained in:
Will Dietz 2018-09-24 11:58:40 -05:00
parent 42e4ea2b6d
commit 8df367a92d

View file

@ -557,7 +557,8 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
;
else if (trusted
|| name == settings.buildTimeout.name
|| name == "connect-timeout")
|| name == "connect-timeout"
|| (name == "builders" && value == ""))
settings.set(name, value);
else if (setSubstituters(settings.substituters))
;