public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12459] New: [RFE] glibc could have a nss_init call that's like res_init but for nsswitch.conf
@ 2011-02-02 17:03 rstrode at redhat dot com
  2012-12-19 10:51 ` [Bug libc/12459] " schwab@linux-m68k.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: rstrode at redhat dot com @ 2011-02-02 17:03 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12459

           Summary: [RFE] glibc could have a nss_init call that's like
                    res_init but for nsswitch.conf
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: rstrode@redhat.com


Right now, long running processes don't get updates to the nsswitch module list
in /etc/nsswitch.conf if nscd isn't running.  This is because libc caches the
module list in memory after it's initially read.

It would be useful if there was a nss_init() call akin to res_init() that would
flush the cached list and reload it.

A relevant downstream bug report is here:

https://bugzilla.redhat.com/show_bug.cgi?id=621700

In that case the long running process was GDM (graphical login screen).  A user
used authconfig to change their nsswitch.conf and then used fast user switching
(which jumps to a login screen on a different vt) to try to test the new
configuration.  Because the login screen was around before the user ran
authconfig, the list of nsswitch modules was stale.  This caused a getpwnam()
call to fail, which ultimately lead to login failure.

I worked around this for the above bug report by spawning a helper program to
do the getpwnam() call for me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-05-22 23:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 17:03 [Bug libc/12459] New: [RFE] glibc could have a nss_init call that's like res_init but for nsswitch.conf rstrode at redhat dot com
2012-12-19 10:51 ` [Bug libc/12459] " schwab@linux-m68k.org
2013-10-20 20:31 ` neleai at seznam dot cz
2014-06-27 13:53 ` fweimer at redhat dot com
2015-08-27 21:53 ` [Bug nss/12459] " jsm28 at gcc dot gnu.org
2020-07-06 14:10 ` [Bug nss/12459] Auto-reloading for /etc/nsswitch.conf fweimer at redhat dot com
2020-07-06 14:10 ` fweimer at redhat dot com
2020-07-07 13:32 ` rstrode at redhat dot com
2020-12-16  7:55 ` fweimer at redhat dot com
2021-02-17 13:39 ` fweimer at redhat dot com
2021-02-17 13:39 ` fweimer at redhat dot com
2021-06-07 12:28 ` fweimer at redhat dot com
2024-05-22 23:11 ` m.novosyolov at rosalinux dot ru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).