diff --git a/0012-profile-fix-mdns-support.patch b/0012-profile-fix-mdns-support.patch new file mode 100644 index 0000000..97ecbb1 --- /dev/null +++ b/0012-profile-fix-mdns-support.patch @@ -0,0 +1,69 @@ +From b9cbd670c2993dd2c6c8c107712c68f8c874ac16 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pavel=20B=C5=99ezina?= +Date: Thu, 10 Feb 2022 12:40:45 +0100 +Subject: [PATCH] profile: fix mdns support + +Resolves: +https://github.com/authselect/authselect/issues/293 +--- + profiles/minimal/nsswitch.conf | 2 +- + profiles/nis/nsswitch.conf | 2 +- + profiles/sssd/nsswitch.conf | 2 +- + profiles/winbind/nsswitch.conf | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/profiles/minimal/nsswitch.conf b/profiles/minimal/nsswitch.conf +index 6c3c355b523226a694d64276ffe907cec175022b..563ba030d4c1291023ba36d33eb9f225f10cfa9b 100644 +--- a/profiles/minimal/nsswitch.conf ++++ b/profiles/minimal/nsswitch.conf +@@ -2,7 +2,7 @@ + passwd: files {if "with-altfiles":altfiles }systemd + shadow: files + group: files {if "with-altfiles":altfiles }systemd +-hosts: files {if "with-mdns4" and "with-mdns6":mdns_minimal }{if "with-mdns4" and not "with-mdns6":mdns4_minimal }{if not "with-mdns4" and "with-mdns6":mdns6_minimal }resolve [!UNAVAIL=return] myhostname dns ++hosts: files myhostname {if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] dns + services: files + netgroup: files + automount: files +diff --git a/profiles/nis/nsswitch.conf b/profiles/nis/nsswitch.conf +index e60eeaacf68728d7355647c068fff9bbb1916b4a..49b91eaaa1395ea2fcbe402bc29bd7fb24c4a0c9 100644 +--- a/profiles/nis/nsswitch.conf ++++ b/profiles/nis/nsswitch.conf +@@ -2,7 +2,7 @@ + passwd: files {if "with-altfiles":altfiles }nis systemd + shadow: files nis + group: files {if "with-altfiles":altfiles }nis systemd +-hosts: files {if "with-mdns4" and "with-mdns6":mdns_minimal }{if "with-mdns4" and not "with-mdns6":mdns4_minimal }{if not "with-mdns4" and "with-mdns6":mdns6_minimal }resolve [!UNAVAIL=return] nis myhostname dns ++hosts: files myhostname {if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] nis dns + services: files nis + netgroup: files nis + automount: files nis +diff --git a/profiles/sssd/nsswitch.conf b/profiles/sssd/nsswitch.conf +index 526cbaeeecee7649e2b3071c8706ce35ec7ed388..699fac909dd66bec06dcf372a99b487be2d85059 100644 +--- a/profiles/sssd/nsswitch.conf ++++ b/profiles/sssd/nsswitch.conf +@@ -2,7 +2,7 @@ + passwd: {if "with-files-domain":sss }files {if "with-altfiles":altfiles }{if not "with-files-domain":sss }systemd + shadow: files + group: {if "with-files-domain":sss }files {if "with-altfiles":altfiles }{if not "with-files-domain":sss }systemd +-hosts: files {if "with-mdns4" and "with-mdns6":mdns_minimal }{if "with-mdns4" and not "with-mdns6":mdns4_minimal }{if not "with-mdns4" and "with-mdns6":mdns6_minimal }resolve [!UNAVAIL=return] myhostname dns ++hosts: files myhostname {if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] dns + services: files sss + netgroup: files sss + sudoers: files sss {include if "with-sudo"} +diff --git a/profiles/winbind/nsswitch.conf b/profiles/winbind/nsswitch.conf +index b3ea72d94bc3795113d76178ed070ff8f928e137..835800e50f94256baca99bd31e09ef1488e5eeb1 100644 +--- a/profiles/winbind/nsswitch.conf ++++ b/profiles/winbind/nsswitch.conf +@@ -2,7 +2,7 @@ + passwd: files {if "with-altfiles":altfiles }winbind systemd + shadow: files + group: files {if "with-altfiles":altfiles }winbind systemd +-hosts: files {if "with-mdns4" and "with-mdns6":mdns_minimal }{if "with-mdns4" and not "with-mdns6":mdns4_minimal }{if not "with-mdns4" and "with-mdns6":mdns6_minimal }resolve [!UNAVAIL=return] myhostname dns ++hosts: files myhostname {if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] dns + services: files + netgroup: files + automount: files +-- +2.31.1 + diff --git a/authselect.spec b/authselect.spec index b986b08..7704f6d 100644 --- a/authselect.spec +++ b/authselect.spec @@ -3,7 +3,7 @@ Name: authselect Version: 1.3.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Configures authentication and identity sources from supported profiles URL: https://github.com/authselect/authselect @@ -21,6 +21,7 @@ Patch0008: 0008-spec-do-not-backup-non-existing-configuration-on-fre.patch Patch0009: 0009-lib-bump-soname-version-to-4-3-1.patch Patch0010: 0010-spec-fix-detection-of-ostree-system.patch Patch0011: 0011-spec-remove-unnecessary-dependencies.patch +Patch0012: 0012-profile-fix-mdns-support.patch %global makedir %{_builddir}/%{name}-%{version} @@ -353,6 +354,9 @@ fi exit 0 %changelog +* Thu Feb 10 2022 Pavel Březina - 1.3.0-10 +- Fix mdns support (#2052269) + * Thu Feb 3 2022 Pavel Březina - 1.3.0-9 - Make authselect compatible with ostree (#2034360) - Authselect now requires explicit opt-out if users don't want to use it (#2051545)