]> git.ipfire.org Git - thirdparty/systemd.git/commit
nss-systemd,sysusers: make sure sysusers doesn't get confused by nss-systemd (#6812)
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Sep 2017 04:20:39 +0000 (06:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Sep 2017 04:20:39 +0000 (06:20 +0200)
commitfe102d6ab15731a199a7ea9f38c4f68d8959f86c
tree86924b64aa061842688fb2a5d3253635d4784ea4
parentd5df18e4b6d39b0c5e0abf6031e53d28bdfd9243
nss-systemd,sysusers: make sure sysusers doesn't get confused by nss-systemd (#6812)

In nss-systemd we synthesize user entries for "nobody" and "root", as
fallback if we boot up with an entirely empty /etc. This is supposed to
be a fallback only though, and it's intended that both users exists
regularly in /etc/passwd + /etc/group. Before this patch
systemd-sysusers would never create the entries however as it notices
the synthetic entries. Let's add a way how systemd-sysusers can tell
nss-systemd not to synthesize the entries for itself.

Fixes: #6808
src/nss-systemd/nss-systemd.c
src/sysusers/sysusers.c