[systemd-devel] [PATCH] sysusers: allow overrides in /etc and /run
Lennart Poettering
lennart at poettering.net
Thu Jul 10 13:39:29 PDT 2014
On Thu, 10.07.14 14:51, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
> An administrator might want to block a certain sysusers config file from
> being executed, e.g. to block the creation of a certain user.
> ---
> src/sysusers/sysusers.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
> index 129493a1e7..68c552d24a 100644
> --- a/src/sysusers/sysusers.c
> +++ b/src/sysusers/sysusers.c
> @@ -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
Makes sense, commit!
(Also needs man page update I figure...)
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list