diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2022-09-22 13:59:16 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2022-09-22 13:59:16 -0500 |
commit | 6e049ae607b53eba3c9c6bed260a0b39a3f73a70 (patch) | |
tree | f82a462b1b474d853d66a532de918da9444881e3 | |
parent | 96001098796c9011d1670cc8a7acd00ef49b2d7a (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.
-rw-r--r-- | src/libstore/daemon.cc | 2 |
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); |