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.
This commit is contained in:
Matthew Bauer 2022-09-22 13:59:16 -05:00
parent 9600109879
commit 6e049ae607

View file

@ -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);