[PATCH] fill_user_info: fake user info for 'root' if it can not be found

Thiago Macieira thiago at kde.org
Mon Feb 25 14:25:18 PST 2013

On segunda-feira, 25 de fevereiro de 2013 20.21.14, Tom Gundersen wrote:
> > I'd accept the patch only if it's
> > #ifdef'ed out by a configure-time option.
> Hm, what would be the benefit of making it a config switch? Do you see
> cases where the old behavior would be desirable? Is it a security
> concern?

Because on most systems, the code will never be exercised. If the system is so 
broken that the root user can't be found, most likely nothing else is working. 
The daemon failing to start might be the least of the problems. Or, 
alternatively, the daemon failing to start might be the necessary symptom to 
get the admin to notice something is wrong.

I'd leave it only for systems where the admin / distributor knows that an 
empty /etc is an expected condition.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130225/485c1da4/attachment.pgp>

More information about the dbus mailing list