[mailgraph/f14/master] Ensure that SELinux contexts are correctly set on mailgraph rrd files
tremble
tremble at fedoraproject.org
Sat Oct 2 13:08:24 UTC 2010
commit 9f4a17b70d3951ecda9658bf2b921269e5240014
Author: Mark Chappell <tremble at fedoraproject.org>
Date: Sat Oct 2 15:02:20 2010 +0200
Ensure that SELinux contexts are correctly set on mailgraph rrd files
mailgraph.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/mailgraph.spec b/mailgraph.spec
index 2382b62..09cd018 100644
--- a/mailgraph.spec
+++ b/mailgraph.spec
@@ -149,6 +149,7 @@ fi
# Fix up non-standard file contexts
/sbin/fixfiles -R %{name} restore || :
/sbin/restorecon -R %{_localstatedir}/cache/%{name} || :
+/sbin/restorecon -R %{_localstatedir}/lib/%{name} || :
%postun selinux
# Clean up after package removal
@@ -172,9 +173,11 @@ if [ $1 -eq 0 ]; then
/sbin/fixfiles -R %{name} restore || :
- # Clean up any remaining file contexts (shouldn't be any really)
+ # Clean up any remaining file contexts
[ -d %{_localstatedir}/cache/%{name} ] && \
/sbin/restorecon -R %{_localstatedir}/cache/%{name} &> /dev/null || :
+ [ -d %{_localstatedir}/lib/%{name} ] && \
+ /sbin/restorecon -R %{_localstatedir}/lib/%{name} &> /dev/null || :
fi
%endif
@@ -197,6 +200,9 @@ fi
%endif
%changelog
+* Sat Oct 02 2010 Mark Chappell <tremble at fedoraproject.org> - 1.14-8
+- SELinux policy did not set the context on RRD files (bz #566513)
+
* Tue Jun 01 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.14-7
- Mass rebuild with perl-5.12.0
More information about the scm-commits
mailing list