diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-02-10 14:38:14 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-02-10 14:38:14 +0100 |
commit | f094ba7386fc5fbb3df5fd84008ca07d2289ff26 (patch) | |
tree | f4796141204130e6f157487b312d9d8ace8551e2 /src/libstore/build/local-derivation-goal.cc | |
parent | 5597d68e2d73a3b89ff36fcfeac82d7fe7d4f384 (diff) |
Simplify the PID namespace check: just try to mount /proc
Fixes #7783.
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index e1cc504f8..e5ba3ac0d 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -209,7 +209,7 @@ void LocalDerivationGoal::tryLocalBuild() #if __linux__ if (useChroot) { - if (!mountNamespacesSupported() || !pidNamespacesSupported()) { + 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"); debug("auto-disabling sandboxing because the prerequisite namespaces are not available"); |