Allow default sandbox paths to be overriden

E.g. you can now redirect /etc/resolv.conf to a different file.
This commit is contained in:
Eelco Dolstra
2017-04-04 17:54:16 +02:00
parent 488792a87d
commit 8decb07c31
+1 -1
View File
@@ -2409,7 +2409,7 @@ void DerivationGoal::runChild()
ss.push_back("/var/run/nscd/socket");
}
for (auto & i : ss) dirsInChroot[i] = i;
for (auto & i : ss) dirsInChroot.emplace(i, i);
/* Bind-mount all the directories from the "host"
filesystem that we want in the chroot