[Pkg-sssd-devel] [Git][sssd-team/sssd][master] Don't add subid to /etc/nsswitch.conf

Timo Aaltonen (@tjaalton) gitlab at salsa.debian.org
Tue Apr 11 13:14:09 BST 2023



Timo Aaltonen pushed to branch master at Debian SSSD packaging / sssd


Commits:
6ea20516 by Sam Morris at 2023-04-11T12:14:03+00:00
Don't add subid to /etc/nsswitch.conf

- - - - -


2 changed files:

- − debian/sssd-common.nss
- debian/sssd-common.preinst


Changes:

=====================================
debian/sssd-common.nss deleted
=====================================
@@ -1,5 +0,0 @@
-# The 'subid' database supports only a sigle data source:
-# <https://github.com/shadow-maint/shadow/issues/351>
-subid	database-add
-
-subid	last	sss


=====================================
debian/sssd-common.preinst
=====================================
@@ -17,6 +17,14 @@ install)
     # Force the AppArmor profile to complain mode on install
     inst_complain_profile
     ;;
+upgrade)
+    if dpkg --compare-versions "$2" le 2.8.2-3; then
+	# 2.8.2-2 added a line for subid which was premature given that
+	# libsubid supports only a single database. Let's remove it to avoid
+	# breaking systems where the user expects /etc/sub[ug]id to continue to
+	# work.
+	sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e '/^subid:\s*sss\s*$/d'
+    fi
 esac
 
 #DEBHELPER#



View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/commit/6ea20516331085cee85083385b4b64651f83d2a1

-- 
View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/commit/6ea20516331085cee85083385b4b64651f83d2a1
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-sssd-devel/attachments/20230411/74e8082c/attachment-0001.htm>


More information about the Pkg-sssd-devel mailing list