nspawn: refactor setuid code a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Mar 2019 10:54:54 +0000 (11:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Mar 2019 14:33:09 +0000 (15:33 +0100)
commit61b4443361ecd8f80c1eabc3d6675394a1835dde
tree37c12babba4197346c9321cf4fe65327133a4e8b
parent5211445eaea69b5826417c7e754b65bd652cdfaa
nspawn: refactor setuid code a bit

Let's separate out the raw uid_t/gid_t handling from the username
handling. This is useful later on.

Also, let's use the right gid_t type for group types wherever
appropriate.
src/nspawn/nspawn-setuid.c
src/nspawn/nspawn-setuid.h