Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7ce425f74 | ||
|
|
1a6e445511 | ||
|
|
49dcb72e3f | ||
|
|
9eeddd6f94 |
4 changed files with 38 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -122,3 +122,4 @@ setroubleshoot-plugins-2.1.55.tar.gz
|
|||
/setroubleshoot-plugins-3.3.10.tar.gz
|
||||
/setroubleshoot-plugins-3.3.11.tar.gz
|
||||
/setroubleshoot-plugins-3.3.12.tar.gz
|
||||
/setroubleshoot-plugins-3.3.14.tar.gz
|
||||
|
|
|
|||
26
0001-restorecon.py-exclude-more-paths.patch
Normal file
26
0001-restorecon.py-exclude-more-paths.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
From 0f508191647a41f92264c0c8fc877b0110bbd468 Mon Sep 17 00:00:00 2001
|
||||
From: Petr Lautrbach <plautrba@redhat.com>
|
||||
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
|
||||
|
||||
|
|
@ -5,13 +5,14 @@
|
|||
|
||||
Summary: Analysis plugins for use with setroubleshoot
|
||||
Name: setroubleshoot-plugins
|
||||
Version: 3.3.12
|
||||
Release: 4%{?dist}
|
||||
Version: 3.3.14
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://github.com/fedora-selinux/setroubleshoot
|
||||
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
|
||||
# git format-patch -N setroubleshoot-plugins-<version> -- plugins
|
||||
# i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
|
||||
Patch0001: 0001-restorecon.py-exclude-more-paths.patch
|
||||
BuildArch: noarch
|
||||
|
||||
# gcc is needed only for ./configure
|
||||
|
|
@ -30,7 +31,7 @@ data and system data to provide user friendly reports describing how
|
|||
to interpret SELinux AVC denials.
|
||||
|
||||
%prep
|
||||
%autosetup -p 2
|
||||
%autosetup -p 1
|
||||
|
||||
%build
|
||||
%configure PYTHON=%{__python3}
|
||||
|
|
@ -49,6 +50,12 @@ rm -rf %{buildroot}
|
|||
%{_datadir}/setroubleshoot/plugins
|
||||
|
||||
%changelog
|
||||
* Fri Sep 3 2021 Petr Lautrbach <plautrba@redhat.com> - 3.3.14-2
|
||||
- restorecon.py: exclude more paths (#1960136)
|
||||
|
||||
* Mon Mar 29 2021 Vit Mojzis <vmojzis@redhat.com> - 3.3.14-1
|
||||
- Update translations
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.12-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (setroubleshoot-plugins-3.3.12.tar.gz) = aec345a93aa7cfaea8468c72639dacb89dfc4fa9f1d2ed2e121f5ca20dfd37399877364d95cd8dd548cefcaee4ea818ae4465035a60b6ba18493eb548ef4c87e
|
||||
SHA512 (setroubleshoot-plugins-3.3.14.tar.gz) = da6882a998aeade67891a722a5b94e2ba1072d9db5d73031854a2c0b51083a0eaf9519dd7987938a86c1f8d263d08882642ac447d7b4bbcd8a859db4b44d61c1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue