[mrtg] Fix wrong SELinux context of /var/lock/mrtg

vcrhonek vcrhonek at fedoraproject.org
Tue Jan 21 14:52:25 UTC 2014


commit 672a6a9a9a48a2bfa3a8399ad32360b25c773946
Author: Vitezslav Crhonek <vcrhonek at redhat.com>
Date:   Tue Jan 21 15:52:37 2014 +0100

    Fix wrong SELinux context of /var/lock/mrtg

 mrtg.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/mrtg.spec b/mrtg.spec
index e903f8a..6dfd8d7 100644
--- a/mrtg.spec
+++ b/mrtg.spec
@@ -6,7 +6,7 @@
 Summary:   Multi Router Traffic Grapher
 Name:      mrtg
 Version:   2.17.4
-Release:   11%{?dist}
+Release:   12%{?dist}
 URL:       http://oss.oetiker.ch/mrtg/
 Source0:   http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz
 Source1:   http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz.md5
@@ -105,6 +105,7 @@ sed -i 's;@@lib@@;%{_lib};g' "$RPM_BUILD_ROOT"%{_mandir}/man1/*.1
 
 %post
 install -d -m 0755 -o root -g root /var/lock/mrtg
+restorecon /var/lock/mrtg
 %systemd_post mrtg.service
 
 %preun
@@ -138,6 +139,9 @@ fi
 %{_unitdir}/mrtg.timer
 
 %changelog
+* Tue Jan 21 2014 Vitezslav Crhonek <vcrhonek at redhat.com> - 2.17.4-12
+- Fix wrong SELinux context of /var/lock/mrtg
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.17.4-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list