[systemd-devel] [PATCH] sysusers: allow overrides in /etc and /run

Reindl Harald h.reindl at thelounge.net
Thu Jul 10 08:10:21 PDT 2014


Am 10.07.2014 16:59, schrieb Jóhann B. Guðmundsson:
> On 07/10/2014 12:51 PM, Zbigniew Jędrzejewski-Szmek 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
> 
> How does this handle multiple users and if I as an administrator I wanted to 
> block some users from being created I simply would not have installed the 
> component that created him in the first place no?

you sound like it is always clear what package, probably installed as
dependency creates a user before - not speaking about that most packages
due uninstall don't remove the users created in rpm scripts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140710/1e116444/attachment.sig>


More information about the systemd-devel mailing list