From b4e2abdf5cc2cb36b74ba7fd96c0612400c7ae02 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 30 Nov 2025 13:00:14 +0100 Subject: [PATCH] libstore/build: upgrade the sandbox-fallback message to a warning Disabling build sandboxing is a significant change to build isolation. If this is done automatically due to namespacing issues (and sandbox-fallback not being disabled), show the user a loud warning without the need to opt into a lot of other log spam. Change-Id: I52daccdd6934873234223c798ca3dcff6a6a6964 --- lix/libstore/build/local-derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lix/libstore/build/local-derivation-goal.cc b/lix/libstore/build/local-derivation-goal.cc index 9e8ea4ca0..084b1d6d8 100644 --- a/lix/libstore/build/local-derivation-goal.cc +++ b/lix/libstore/build/local-derivation-goal.cc @@ -263,7 +263,7 @@ retry: if (!mountAndPidNamespacesSupported()) { if (!settings.sandboxFallback) throw Error("this system does not support the kernel namespaces that are required for sandboxing; use '--no-sandbox' to disable sandboxing. Pass --debug for diagnostics on what is broken."); - debug("auto-disabling sandboxing because the prerequisite namespaces are not available"); + printTaggedWarning("auto-disabling sandboxing because the prerequisite namespaces are not available"); useChroot = false; }