aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/daemon.cc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2022-09-22 13:59:16 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2022-09-22 13:59:16 -0500
commit6e049ae607b53eba3c9c6bed260a0b39a3f73a70 (patch)
treef82a462b1b474d853d66a532de918da9444881e3 /src/libstore/daemon.cc
parent96001098796c9011d1670cc8a7acd00ef49b2d7a (diff)
Allow pass max-silent-time and build-poll-interval to daemon untrusted
These settings seem harmless, they control the same polling functionality that timeout does, but with different behavior. Should be safe for untrusted users to pass in.
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r--src/libstore/daemon.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index de69b50ee..48dd5c247 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -239,6 +239,8 @@ struct ClientSettings
else if (trusted
|| name == settings.buildTimeout.name
|| name == settings.buildRepeat.name
+ || name == settings.maxSilentTime.name
+ || name == settings.pollInterval.name
|| name == "connect-timeout"
|| (name == "builders" && value == ""))
settings.set(name, value);