diff options
| author | Christopher Baines <mail@cbaines.net> | 2026-08-07 16:45:00 +0100 |
|---|---|---|
| committer | Christopher Baines <mail@cbaines.net> | 2026-08-21 16:42:58 +0100 |
| commit | c3832cd497a8fcd87e84878c6ee3bbc10f42d0ca (patch) | |
| tree | f42817ab4adce2e32ac6a33c220b910576c76541 | |
| parent | 2b14081d16ff6aa7a64bd118f7f737b85fbabd4b (diff) | |
nix-daemon: Allow any client to set build-max-log-size.
I want to use the build-max-log-size feature since it's useful for the
bordeaux build farm to cap the log size. I can't see any reason to limit this
functionality as I think it has the same security implications as the
build-timeout and build-max-silent-time settings.
* nix/nix-daemon/nix-daemon.cc (performOp): Allow any client to set
build-max-log-size.
Change-Id: I87825c43ef914c85866e82fe1ed899f13a559b38
| -rw-r--r-- | nix/nix-daemon/nix-daemon.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc index 49172d53e9e..5e8ae3a5cd8 100644 --- a/nix/nix-daemon/nix-daemon.cc +++ b/nix/nix-daemon/nix-daemon.cc | |||
| @@ -629,6 +629,7 @@ static void performOp(bool trusted, unsigned int clientVersion, | |||
| 629 | string name = readString(from); | 629 | string name = readString(from); |
| 630 | string value = readString(from); | 630 | string value = readString(from); |
| 631 | if (name == "build-timeout" || name == "build-max-silent-time" | 631 | if (name == "build-timeout" || name == "build-max-silent-time" |
| 632 | || name == "build-max-log-size" | ||
| 632 | || name == "build-max-jobs" || name == "build-cores" | 633 | || name == "build-max-jobs" || name == "build-cores" |
| 633 | || name == "build-repeat" | 634 | || name == "build-repeat" |
| 634 | || name == "multiplexed-build-output") | 635 | || name == "multiplexed-build-output") |
