aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-05-19 13:05:16 +0200
committerGitHub <noreply@github.com>2023-05-19 13:05:16 +0200
commite31d9b910dcebd77028f5d4351e2cc7205baa321 (patch)
tree76ec005276d30ba8983f8387af80ba5f7fe644e8 /src
parentb1c34c0ee808f60da32f09e238087106b9c4f680 (diff)
parenta7d2a3d087f21c004716808c94c63c387b2e689b (diff)
Merge pull request #7312 from layus/fixed-output-system-cert
Allow system certs access to fixed-output derivations
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/local-derivation-goal.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index e6db298d6..36c89bee9 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -1776,6 +1776,8 @@ void LocalDerivationGoal::runChild()
for (auto & path : { "/etc/resolv.conf", "/etc/services", "/etc/hosts" })
if (pathExists(path))
ss.push_back(path);
+
+ dirsInChroot.emplace(settings.caFile, "/etc/ssl/certs/ca-certificates.crt");
}
for (auto & i : ss) dirsInChroot.emplace(i, i);