From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D8483834419; Wed, 17 Feb 2021 13:39:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D8483834419 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug nss/12459] Auto-reloading for /etc/nsswitch.conf Date: Wed, 17 Feb 2021 13:39:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nss X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dj at redhat dot com X-Bugzilla-Target-Milestone: 2.33 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: resolution target_milestone bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2021 13:39:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D12459 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |2.33 Status|ASSIGNED |RESOLVED --- Comment #5 from Florian Weimer --- This has been implemented in glibc 2.33. Related commits follow. Note that = some fixes are required as well. commit f4f3b09111e9fa38fd485979a3e40b6cfa6a757d Author: DJ Delorie Date: Mon Nov 9 22:09:34 2020 -0500 nsswitch: use new internal API (callers) Stitch new ABI and types throughout all NSS callers. Reviewed-by: Siddhesh Poyarekar commit 6eceded941bb6dcc097291757e2aef5cd7212133 Author: DJ Delorie Date: Mon Nov 9 22:08:04 2020 -0500 nsswitch: user new internal API (tests) Testsuite support and new test for new API. Reviewed-by: Siddhesh Poyarekar commit f8847d83e17774ed5e9c0f75ef693680b91bcae4 Author: DJ Delorie Date: Mon Nov 9 22:06:57 2020 -0500 nsswitch: use new internal API (core) Core changes to switch the NSS internals to use the new API. Reviewed-by: Siddhesh Poyarekar commit fa78feca47fdc226b46e7f6fea4c08c10fccd182 Author: Florian Weimer Date: Thu Feb 20 13:20:32 2020 +0100 nss: Implement This code manages the mappings of the available databases in NSS (i.e. passwd, hosts, netgroup, etc) with the actions that should be taken to do a query on those databases. This is the main API between query functions scattered throughout glibc and the underlying code (actions, modules, etc). Reviewed-by: Siddhesh Poyarekar commit fd5b9b4458ef662d1955459e22a11b15d16a5648 Author: Florian Weimer Date: Thu Feb 20 09:32:27 2020 +0100 : New abstraction for combining NSS modules and NSS actio= ns 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=3Dreturn] 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 commit 171689dac7fcb979e7d3ffbd307eacae3c07c2d3 Author: Florian Weimer Date: Wed Feb 19 20:55:48 2020 +0100 nss: Introduce This provides the struct nss_module type, which combines the old struct service_library type with the known_function tree, by statically allocating space for all function pointers. struct nss_module is fairly large (536 bytes), but it will be shared across NSS databases. The old known_function handling had non-some per-function overhead (at least 32 bytes per looked-up function, but more for long function anmes), so overall, this is not too bad. Resolving all functions at load time simplifies locking, and the repeated lookups should be fast because the caches are hot at this point. Reviewed-by: Siddhesh Poyarekar --=20 You are receiving this mail because: You are on the CC list for the bug.=