diff --git a/0001-restorecon.py-exclude-more-paths.patch b/0001-restorecon.py-exclude-more-paths.patch new file mode 100644 index 0000000..2189d21 --- /dev/null +++ b/0001-restorecon.py-exclude-more-paths.patch @@ -0,0 +1,26 @@ +From 0f508191647a41f92264c0c8fc877b0110bbd468 Mon Sep 17 00:00:00 2001 +From: Petr Lautrbach +Date: Tue, 10 Aug 2021 20:11:20 +0200 +Subject: [PATCH] restorecon.py: exclude more paths + +It doesn't make sense to run restorecon on /sys/ /proc/ and /memfd: +--- + src/restorecon.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/restorecon.py b/src/restorecon.py +index e3044c742367..9594c0d59d96 100644 +--- a/src/restorecon.py ++++ b/src/restorecon.py +@@ -39,7 +39,7 @@ def customizable(target): + + + # List of path prefixes for which this plugin is not executed +-excluded_paths = ["/sys/fs"] ++excluded_paths = ["/sys/", "/proc/", "/memfd:"] + # Test if the specified path starts with some excluded prefix + def excluded_path(target_path): + for path in excluded_paths: +-- +2.32.0 + diff --git a/setroubleshoot-plugins-3.3.12.tar.gz b/setroubleshoot-plugins-3.3.12.tar.gz deleted file mode 100644 index c44efa9..0000000 Binary files a/setroubleshoot-plugins-3.3.12.tar.gz and /dev/null differ diff --git a/setroubleshoot-plugins-3.3.14.tar.gz b/setroubleshoot-plugins-3.3.14.tar.gz new file mode 100644 index 0000000..6291c52 Binary files /dev/null and b/setroubleshoot-plugins-3.3.14.tar.gz differ diff --git a/setroubleshoot-plugins.spec b/setroubleshoot-plugins.spec index a1a28c5..283f2a4 100644 --- a/setroubleshoot-plugins.spec +++ b/setroubleshoot-plugins.spec @@ -1,12 +1,14 @@ Name: setroubleshoot-plugins -Version: 3.3.12 +Version: 3.3.14 Release: 1 Summary: Analysis plugins for setroubleshoot License: GPLv3 URL: https://github.com/fedora-selinux/setroubleshoot BuildArch: noarch -Source0: https://github.com/fedora-selinux/setroubleshoot/archive/%{name}-%{version}.tar.gz +Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz + +Patch0: 0001-restorecon.py-exclude-more-paths.patch BuildRequires: gcc perl-XML-Parser intltool gettext python3-devel Requires: setroubleshoot-server >= 3.3.23 @@ -15,7 +17,7 @@ Requires: setroubleshoot-server >= 3.3.23 These are the analysis plugins for setroubleshoot. %prep -%autosetup -p2 +%autosetup -p1 %build %configure PYTHON=/usr/bin/python3 @@ -34,6 +36,9 @@ rm -rf %{buildroot} %{_datadir}/setroubleshoot/plugins %changelog +* Tue Dec 28 2021 panxiaohe -3.3.14-1 +- update to 3.3.14 + * Fri Jan 22 2021 yixiangzhike -3.3.12-1 - update to 3.3.12