buildFhsUserenv: inherit mounts from parent namespace

launchpad/nixpkgs/master
Matt Votava 3 years ago
parent 07978cddab
commit ea4b37e679
  1. 2
      pkgs/build-support/build-fhs-userenv/chrootenv/chrootenv.c

@ -122,7 +122,7 @@ int main(gint argc, gchar **argv) {
}
// hide all mounts we do from the parent
fail_if(mount(0, "/", 0, MS_PRIVATE | MS_REC, 0));
fail_if(mount(0, "/", 0, MS_SLAVE | MS_REC, 0));
if (uid != 0) {
spit("/proc/self/setgroups", "deny");

Loading…
Cancel
Save