chiark / gitweb /
core: refuse doing %h, %s, %U specifier resolving in PID 1
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Dec 2013 03:59:31 +0000 (04:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Dec 2013 03:59:31 +0000 (04:59 +0100)
commit2cfbd749af308bdbe56edcfed7f3eea0fc2b93d2
treeee79409a34b1f30d7323bb68064aed7183b0e0a6
parent213298fb822258bb69c6b85b7c8d7f019fd2306a
core: refuse doing %h, %s, %U specifier resolving in PID 1

These specifiers require NSS lookups to work, and we really shouldn't do
them from PID 1 hence. With this change they are now only supported for
user systemd instance, or when the configured user for a unit is root.
man/systemd.unit.xml
src/core/unit-printf.c
src/shared/util.c
src/shared/util.h