]> git.ipfire.org Git - thirdparty/systemd.git/commit
user-util: add new helper fully_set_uid_gid()
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2023 16:45:06 +0000 (17:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Dec 2023 21:11:38 +0000 (22:11 +0100)
commit6498a0c2cc19361526aad0a0aa01f309aba4293a
treed14cdfb130df967f87896367c2e52ca162f134c8
parenteb981a5b9b1a765f98312c209f60d170a77bb25f
user-util: add new helper fully_set_uid_gid()

Usually when we do setresuid() we also do setesgid() and setgroups().
Let's add a common helper that does all three, and use it everywhere.
src/basic/user-util.c
src/basic/user-util.h
src/core/exec-invoke.c
src/home/homed-home.c
src/home/homework-fscrypt.c
src/nspawn/nspawn-setuid.c
src/test/test-socket-util.c