From 8c12ca1090e93201aa03b34f64b8cc49f51ab292 Mon Sep 17 00:00:00 2001 From: ouyanglearnning Date: Thu, 14 Apr 2022 13:49:17 +0800 Subject: [PATCH] exclude pcpqa user who cannot login because of SELinux (cherry picked from commit 48049851a3c7e413bef117eed5837c25c07c3928) --- ...er-who-cannot-login-because-of-SELin.patch | 26 +++++++++++++++++++ accountsservice.spec | 9 +++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 0001-exclude-pcpqa-user-who-cannot-login-because-of-SELin.patch diff --git a/0001-exclude-pcpqa-user-who-cannot-login-because-of-SELin.patch b/0001-exclude-pcpqa-user-who-cannot-login-because-of-SELin.patch new file mode 100644 index 0000000..2a0f9f8 --- /dev/null +++ b/0001-exclude-pcpqa-user-who-cannot-login-because-of-SELin.patch @@ -0,0 +1,26 @@ +From 2807b7704fe1abbd1eb68eb6c8f6c2f430bdf12b Mon Sep 17 00:00:00 2001 +From: ouyangminxiang +Date: Wed, 30 Mar 2022 15:47:25 +0800 +Subject: [PATCH] exclude pcpqa user who cannot login because of SELinux + +--- + src/user-classify.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/user-classify.c b/src/user-classify.c +index 9db1c9a..cbfe177 100644 +--- a/src/user-classify.c ++++ b/src/user-classify.c +@@ -51,7 +51,8 @@ static const char *default_excludes[] = { + "man", + "at", + "gdm", +- "gnome-initial-setup" ++ "gnome-initial-setup", ++ "pcpqa" + }; + + static gboolean +-- +2.33.0 + diff --git a/accountsservice.spec b/accountsservice.spec index 5a66a20..68ab458 100644 --- a/accountsservice.spec +++ b/accountsservice.spec @@ -1,12 +1,14 @@ Name: accountsservice Version: 0.6.55 -Release: 1 +Release: 2 Summary: D-Bus service for accessing the list of user accounts and information attached to those accounts. License: GPLv3+ URL: https://www.freedesktop.org/wiki/Software/AccountsService/ Source0: https://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz +Patch1: 0001-exclude-pcpqa-user-who-cannot-login-because-of-SELin.patch + BuildRequires: gtk-doc polkit-devel libxslt pkgconfig(dbus-1) systemd systemd-devel BuildRequires: meson gobject-introspection-devel gettext-devel glib2-devel Requires: polkit shadow-utils @@ -37,7 +39,7 @@ are contained in %{name}-devel package. %package_help %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p 1 %build %meson -Dgtk_doc=true -Duser_heuristics=true @@ -87,6 +89,9 @@ are contained in %{name}-devel package. %{_datadir}/gtk-doc/html/libaccountsservice/* %changelog +* Wed Mar 30 2022 ouyangminxiang - 0.6.55-2 +- exclude pcpqa user who cannot login because of SELinux + * Thu Jan 28 2021 yanglu - 0.6.55-1 - Version update