mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
In unprivileged user namespaces, writing 'deny' to /proc/pid/setgroups is required by the kernel before gid_map can be written. This causes setgroups() to fail with EPERM, leaving inherited supplementary groups (mapped to overflowgid). Only fail closed when specific groups were explicitly requested (groups.size() > 0) or when setgroups denial was not expected.
9.9 KiB
9.9 KiB