projects/guix·commit f35cbd24

nix-daemon: Allow any client to set build-max-log-size.

f35cbd24 · Christopher Baines <[email protected]> · 2026-08-07 16:45:00 +01:00

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
Commit
f35cbd24a28b796452d249b25ed474c68f5097f1
Parents
dcddca76

Changes

1 files changed · +1 −0

FileStatusAddDelContent
nix/nix-daemon/nix-daemon.ccmodified+1−0View file

nix/nix-daemon/nix-daemon.cc

View file
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index b3cdb69..c240cc8 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,
string name = readString(from);
string value = readString(from);
if (name == "build-timeout" || name == "build-max-silent-time"
+ || name == "build-max-log-size"
|| name == "build-max-jobs" || name == "build-cores"
|| name == "build-repeat"
|| name == "multiplexed-build-output")