]> git.ipfire.org Git - thirdparty/systemd.git/commit
user-util: Don't setgroups() if /proc/self/gid_map is empty
authorDaan De Meyer <daan@amutable.com>
Fri, 13 Feb 2026 11:24:49 +0000 (12:24 +0100)
committerDaan De Meyer <daan@amutable.com>
Mon, 16 Feb 2026 08:37:32 +0000 (09:37 +0100)
commite2c1f3ca2a69a033c748d62f9be0db8817826839
tree42918c8bb93b8e09e44a2cbb8eefc5875bba8a1c
parent051d228b1cba2de97d4e2eec23342bc773623876
user-util: Don't setgroups() if /proc/self/gid_map is empty

If /proc/self/gid_map is empty, the kernel will refuse setgroups(),
so don't attempt it if that's the case on top of the /proc/self/setgroups
check we already have.
src/basic/user-util.c