nss-systemd: resolve root/nobody statically
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Jul 2016 11:14:01 +0000 (13:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Aug 2016 21:08:05 +0000 (23:08 +0200)
commit2129011e92feee93383b450bb2d20008786b90a0
treefa48bcefe0eca788937b771c947875e208571722
parent136dc4c4350dfcb1d61ceaac982d0d0a8e6e3863
nss-systemd: resolve root/nobody statically

Let's extend nss-systemd to also synthesize user/group entries for the
UIDs/GIDs 0 and 65534 which have special kernel meaning. Given that nss-systemd
is listed in /etc/nsswitch.conf only very late any explicit listing in
/etc/passwd or /etc/group takes precedence.

This functionality is useful in minimal container-like setups that lack
/etc/passwd files (or only have incompletely populated ones).
configure.ac
man/nss-systemd.xml
src/nss-systemd/nss-systemd.c