sysusers: allow overrides in /etc and /run

An administrator might want to block a certain sysusers config file from
being executed, e.g. to block the creation of a certain user.

Only a relatively short description is added in the man page, since
overrides should be relatively rare.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-07-10 22:51:41 -04:00
parent cabb0bc6b1
commit 938a560b76
2 changed files with 46 additions and 19 deletions
+2
View File
@@ -62,6 +62,8 @@ typedef struct Item {
static char *arg_root = NULL;
static const char conf_file_dirs[] =
"/etc/sysusers.d\0"
"/run/sysusers.d\0"
"/usr/local/lib/sysusers.d\0"
"/usr/lib/sysusers.d\0"
#ifdef HAVE_SPLIT_USR