[Rpm-maint] [rpm-software-management/rpm] Add back support for NSS-based user/group resolution (PR #4085)

Panu Matilainen notifications at github.com
Tue Jan 20 11:33:25 UTC 2026


@pmatilai commented on this pull request.



>  
 # Symlink to read-only file /etc/authselect/nsswitch.conf
 rm $RPMTEST/etc/nsswitch.conf
 
 # Set up nss-altfiles
-echo "passwd: files altfiles" > $RPMTEST/etc/nsswitch.conf
-echo "group: files altfiles" >> $RPMTEST/etc/nsswitch.conf
+echo "passwd: altfiles" > $RPMTEST/etc/nsswitch.conf
+echo "group: altfiles" >> $RPMTEST/etc/nsswitch.conf

For some reason this makes me a bit uneasy: it's far more common to have one or more NSS-side fallbacks (like "files altfiles") than just a single entity, so it kinda seems we should test with that. But then if we use an NSS lookup, it's NSS' headache to deal with it, we just need to prove NSS is used. As we do in this test-group. So my worry seems ungrounded, but just noting it here in case it makes some bells ring for somebody else :sweat_smile: 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4085#pullrequestreview-3681734093
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4085/review/3681734093 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260120/9195257b/attachment-0001.htm>


More information about the Rpm-maint mailing list