1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-13 22:12:43 +01:00

Merge branch 'best-effort-supplementary-groups' into overlayfs-store

This commit is contained in:
John Ericson 2023-05-15 17:46:15 -04:00
commit 3496a5ee86
3 changed files with 35 additions and 1 deletions

View file

@ -910,7 +910,7 @@ void LocalDerivationGoal::startBuilder()
after we've created the new user namespace. */
if (settings.dropSupplementaryGroups)
if (setgroups(0, 0) == -1)
throw SysError("setgroups failed");
throw SysError("setgroups failed. Set the drop-supplementary-groups option to false to skip this step.");
ProcessOptions options;
options.cloneFlags = CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | CLONE_NEWUTS | CLONE_PARENT | SIGCHLD;