summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-16 04:59:31 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-16 04:59:31 +0100
commit2cfbd749af308bdbe56edcfed7f3eea0fc2b93d2 (patch)
treeee79409a34b1f30d7323bb68064aed7183b0e0a6 /src/shared/util.h
parent213298fb822258bb69c6b85b7c8d7f019fd2306a (diff)
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.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index d5fa81c6a5..6fc77808d4 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -552,6 +552,7 @@ bool in_initrd(void);
void warn_melody(void);
int get_home_dir(char **ret);
+int get_shell(char **_ret);
static inline void freep(void *p) {
free(*(void**) p);