summaryrefslogtreecommitdiff
path: root/src/basic/user-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-01-10 18:26:03 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:50:04 +0200
commitd3b8f2c9f92d150872d846471d2de18bfbbda02c (patch)
treecd2e2cfba64d9afce07a5cf2d9d0bfc32da90625 /src/basic/user-util.h
parent04d22997d78fe8b0fc608f39c670388955a1466c (diff)
nss-systemd,user-util: add a way how synthesizing "nobody" can be turned off
This is quite ugly, but provides us with an avenue for moving distributions to define the "nobody" user properly without breaking legacy systems that us the name for other stuff. The idea is basically, that the distribution adopts the new definition of "nobody" (and thus recompiles systemd with it) and then touches /etc/systemd/dont-synthesize-nobody on legacy systems to turn off possibly conflicting synthesizing of the nobody name by systemd.
Diffstat (limited to 'src/basic/user-util.h')
-rw-r--r--src/basic/user-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/user-util.h b/src/basic/user-util.h
index 858498940..348160897 100644
--- a/src/basic/user-util.h
+++ b/src/basic/user-util.h
@@ -107,3 +107,5 @@ bool valid_gecos(const char *d);
bool valid_home(const char *p);
int maybe_setgroups(size_t size, const gid_t *list);
+
+bool synthesize_nobody(void);