Bug 20036

Summary: nscd periodically complains about missing nss_db files
Product: glibc Reporter: Maciej S. Szmigiero <mail>
Component: nscdAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: minor CC: drepper.fsp
Priority: P2 Flags: fweimer: security-
Version: 2.23   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Maciej S. Szmigiero 2016-05-02 21:30:58 UTC
nscd periodically complains about missing nss_db databases:
May  2 23:21:58 laptop nscd: 26121 checking for monitored file `/var/db/group.db': No such file or directory
May  2 23:22:05 laptop nscd: 26121 checking for monitored file `/var/db/passwd.db': No such file or directory
May  2 23:22:13 laptop nscd: 26121 checking for monitored file `/var/db/group.db': No such file or directory
May  2 23:22:20 laptop nscd: 26121 checking for monitored file `/var/db/passwd.db': No such file or directory

This happens even if nss_db is not used in /etc/nsswitch.conf for these categories:
passwd:      compat
shadow:      compat
group:       compat

It looks like this behavior is since commit cf9313e7d1dd42addd6cf8c9277f0f18a62cdeff ("Enhance nscd's inotify support")
because previously prune_cache() in nscd/cache.c disabled monitoring of particular file when it got ENOENT from stat64() on it.
So previously these messaged were only logged once instead of periodically as they are now.