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

Thiago Macieira thiago at kde.org
Tue Feb 26 13:13:39 PST 2013


On terça-feira, 26 de fevereiro de 2013 21.17.11, Lennart Poettering wrote:
> As a side note: we currently have a similar special casing for NSS for
> the root user in systemd, because we want to avoid NSS calls as much as
> possible if we can avoid them, since they might block and involve
> network communication. And as most system daemons, especially in early
> boot run as root, this more or less us to reduce the number of NSS calls
> of the "systemd" binary itself to a value next to zero.
> 
> > Alternatively, have you considered using a NSS module that "knows who
> > root is", analogous to nss-myhostname?
> 
> Hmm, i'd claim that most software wouldn't gain anything from special
> casing NSS for the root user. This is only beneficial to the very
> special early boot stuff we have like systemd and dbus.

That's an argument I can accept. Instead of trying to work around a broken 
system that is almost never going to be seen in the wild, improving boot-timer 
performance by avoiding the NSS dependency is very welcome.

However, you need to show that it is avoiding the dependency. If the system 
daemon needs to get information about more users anyway because of the 
configuration files, there was no gain.
-- 
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/20130226/4402cc53/attachment.pgp>


More information about the dbus mailing list