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
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -2409,7 +2409,7 @@ void DerivationGoal::runChild()
ss.push_back("/var/run/nscd/socket"); 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" /* Bind-mount all the directories from the "host"
filesystem that we want in the chroot filesystem that we want in the chroot