mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #136433 from mvnetbiz/build-fhs-userenv
buildFhsUserenv: inherit mounts from parent namespace
This commit is contained in:
commit
7776dbd8d9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue