nss-systemd: tweak checks when we consult PID 1 for dynamic UID/GID lookups
authorLennart Poettering <lennart@poettering.net>
Sat, 2 Dec 2017 12:07:18 +0000 (13:07 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Dec 2017 12:40:50 +0000 (13:40 +0100)
commit834382779304c6f8b1994dcafaa748d798f533b6
treebde810b1c900de4e824d85afef123d1f60baec56
parent4e72397b00ab23607635ce6725573554f235101a
nss-systemd: tweak checks when we consult PID 1 for dynamic UID/GID lookups

Instead of contacting PID 1 for dynamic UID/GID lookups for all
UIDs/GIDs that do not qualify as "system" do the more precise check
instead: check if they actually qualify for the "dynamic" range.
src/basic/user-util.h
src/nss-systemd/nss-systemd.c