[mailgraph/el5/master] Ensure that SELinux contexts are correctly set on mailgraph rrd files
tremble
tremble at fedoraproject.org
Sat Oct 2 13:02:24 UTC 2010
commit cfd5c4df247fefc0328956aa40cda8ace06b0a63
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 dfdce15..822c4f1 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)
+
* Wed Feb 03 2010 Bernard Johnson <bjohnson at symetrix.com> - 1.14-6
- Mailgraph does not include mailgraph.css (bz #561375)
More information about the scm-commits
mailing list