aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/local-derivation-goal.cc
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-11-16 15:23:59 +0100
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-11-16 15:23:59 +0100
commita7d2a3d087f21c004716808c94c63c387b2e689b (patch)
treeef0d626684a1649e14e09c89059556550a39a5ce /src/libstore/build/local-derivation-goal.cc
parent62960f32915909a5104f2ca3a32b25fb3cfd34c7 (diff)
Allow system certs access to fixed-output derivations
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-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 5cea3b590..a4ebd244f 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -1715,6 +1715,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);