Bug 20036 - nscd periodically complains about missing nss_db files
Summary: nscd periodically complains about missing nss_db files
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: nscd (show other bugs)
Version: 2.23
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-02 21:30 UTC by Maciej S. Szmigiero
Modified: 2016-05-04 12:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.