Skip to content

Commit

Permalink
Allow default sandbox paths to be overriden
Browse files Browse the repository at this point in the history
E.g. you can now redirect /etc/resolv.conf to a different file.
  • Loading branch information
edolstra committed Apr 4, 2017
1 parent 488792a commit 8decb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/build.cc
Expand Up @@ -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
Expand Down

0 comments on commit 8decb07

Please sign in to comment.