]> git.ipfire.org Git - thirdparty/glibc.git/commit
<nss_action.h>: New abstraction for combining NSS modules and NSS actions
authorFlorian Weimer <fweimer@redhat.com>
Thu, 20 Feb 2020 08:32:27 +0000 (09:32 +0100)
committerDJ Delorie <dj@redhat.com>
Fri, 4 Dec 2020 22:15:29 +0000 (17:15 -0500)
commitfd5b9b4458ef662d1955459e22a11b15d16a5648
treeb550ba60f5c2591aa76929a2688ff645ef850d39
parent171689dac7fcb979e7d3ffbd307eacae3c07c2d3
<nss_action.h>: New abstraction for combining NSS modules and NSS actions

nss_action manages a set of lists of actions; these are the portions
of the lines in nsswitch.conf to the right of the colons, like
"dns [!UNAVAIL=return] files".  Each permutation of actions and
conditionals is cached for reuse, which limits memory growth, and
refers to the static list of modules managed by nss_modules.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
nss/Makefile
nss/nss_action.c [new file with mode: 0644]
nss/nss_action.h [new file with mode: 0644]
nss/nss_action_parse.c [new file with mode: 0644]