Your message dated Wed, 28 Oct 2026 18:27:40 +0000
with message-id <[email protected]>
and subject line Bug#1151561: Removed package(s) from unstable
has caused the Debian Bug report #1101371,
regarding libnss-db: does not keep db files opened when iterating through them
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1101371: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101371
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libnss-db
Severity: normal
Tags: patch upstream
X-Debbugs-Cc: [email protected]

Dear Maintainer,

libnss-db uses a "stayopen" parameter in db-XXX.c which does not seem used 
anymore by the glibc (and is always 0, in our tests). This parameter is used to 
decide if the databases should be kept opened during iterations.

For instance, during a "getent passwd", the current libnss-db opens and closes 
the passwd.db file for each line in passwd, which is quite slow.

We believe usage of this parameter has been removed in the glibc:
- For instance, glibc/nss/nss_files/files-XXX.c simply ignores it since 2016 in 
`CONCAT(_nss_files_set,ENTNAME) (int stayopen)`;
- nss-pam-ldap does the same in nss/passwd.c with `nss_status_t 
NSS_NAME(setpwent)(int UNUSED(stayopen))`.

History seems to be linked to the mitigation of CVE-2014-8121.

The attached patch ignores the stayopen parameter and forces to keep the DB 
file opened.

Kind regards,
François Lesueur -- alwaysdata


--- libnss-db-2.2.3pre1-orig/src/db-XXX.c       2025-03-10 14:15:07.000000000 
+0100
+++ libnss-db-2.2.3pre1/src/db-XXX.c    2025-03-10 14:23:59.457342846 +0100
@@ -72,9 +72,9 @@

   status = internal_setent (DBFILE, &db, &dbenv);

-  /* Remember STAYOPEN flag.  */
+  /* Ignore STAYOPEN flag.  */
   if (db != NULL)
-    keep_db |= stayopen;
+    keep_db = 1;
   /* Reset the sequential index.  */
   entidx = 0;


-- System Information:
Architecture: amd64 (x86_64)

Versions of packages libnss-db depends on:
ii  libc6        2.36-9+deb12u10
ii  libdb5.3     5.3.28+dfsg2-1
ii  libselinux1  3.4-1+b6

libnss-db recommends no packages.

libnss-db suggests no packages.

--- End Message ---
--- Begin Message ---
Version: 2.2.3pre1-11+rm

Dear submitter,

as the package libnss-db has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1151561

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to