mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
Always attempt setgroups but allow failure to be ignored.
This commit is contained in:
parent
25b20b4ad2
commit
07dabcc90e
3 changed files with 11 additions and 8 deletions
|
@ -524,7 +524,7 @@ public:
|
|||
Setting<bool> sandboxFallback{this, true, "sandbox-fallback",
|
||||
"Whether to disable sandboxing when the kernel doesn't allow it."};
|
||||
|
||||
Setting<bool> dropSupplementaryGroups{this, getuid() == 0, "drop-supplementary-groups",
|
||||
Setting<bool> requireDropSupplementaryGroups{this, true, "require-drop-supplementary-groups",
|
||||
R"(
|
||||
Whether to drop supplementary groups when building with sandboxing.
|
||||
This is normally a good idea if we are root and have the capability to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue