Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 05 Jul 2017 14:02:23 +0200
From: Casper.Dik@...cle.com
To: oss-security@...ts.openwall.com
cc: Daniel SkowroĊ„ski <daniel@...nf.net>
Subject: Re: systemd fails to parse user that should run service 



>2) If user name specified in systemd unit file is syntactically correct
>(according to systemd check) but user name does not exist then systemd
>refuse to start that unit.
>

Should systemd really valid usernames?  I would think that you would 
either use getpwnam(username) and if that fails you may then parse it as a 
numeric value.  If "0day" isn't a valid username according to getpwnam(), 
when converting it to a numeric uid should *also* fail because "0day" 
isn't a properly numeric value.

Casper



Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.