]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-invoke: gracefully handle lack of privilege for initgroups() in user mode
authorMike Yuan <me@yhndnzj.com>
Fri, 19 Sep 2025 22:00:14 +0000 (00:00 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 25 Oct 2025 19:18:11 +0000 (21:18 +0200)
commitc86914667a4ad1debea0cb0cab44df3f10b36dbf
tree1f797d83ee4756b471aeadde5f20fc4a84fe7a86
parentf03b49b079fd4ecb6407e74a116995ded906325a
core/exec-invoke: gracefully handle lack of privilege for initgroups() in user mode

Otherwise specifying User=SELF also fails because we got
no privilege to call setgroups().

Fixes #39038
src/core/exec-invoke.c