[Bug 1760714] [NEW] getlogin_r is performing NSS lookups when loginid isn't set
Charles F. Stephens
cfs at purestorage.com
Mon Apr 2 21:24:11 UTC 2018
Public bug reported:
This the eglibc duplicate of
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1760713 (which is
for glibc)
For configurations that use networked naming services for passwd (in
particular LDAP), processes that have no login UID, there are excessive
delays when getlogin_r() is called.
For such processes, /proc/self/loginid is set to a sentinel value (-1),
when files is the only backend, or if nscd is running this returns
quickly. However if ldap is configured as a backend for passwd, and nscd
isn't being used (which for various political and economic reasons is
not always feasible) network requests to the configured LDAP servers
will occur which can slow down process creation enough to cause timeouts
in parent processes in certain contexts.
Good news, however, as this was recently fixed upstream by:
https://sourceware.org/git/?p=glibc.git;a=commit;h=cc8a1620eb97ccddd337d157263c13c57b39ab71
** Affects: eglibc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1760714
Title:
getlogin_r is performing NSS lookups when loginid isn't set
Status in eglibc package in Ubuntu:
New
Bug description:
This the eglibc duplicate of
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1760713 (which is
for glibc)
For configurations that use networked naming services for passwd (in
particular LDAP), processes that have no login UID, there are
excessive delays when getlogin_r() is called.
For such processes, /proc/self/loginid is set to a sentinel value
(-1), when files is the only backend, or if nscd is running this
returns quickly. However if ldap is configured as a backend for
passwd, and nscd isn't being used (which for various political and
economic reasons is not always feasible) network requests to the
configured LDAP servers will occur which can slow down process
creation enough to cause timeouts in parent processes in certain
contexts.
Good news, however, as this was recently fixed upstream by:
https://sourceware.org/git/?p=glibc.git;a=commit;h=cc8a1620eb97ccddd337d157263c13c57b39ab71
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1760714/+subscriptions
More information about the foundations-bugs
mailing list