[iptables] Own unowned -services libexec dirs (#894464, Michael Scherer).

Ville Skyttä scop at fedoraproject.org
Wed Jan 16 16:39:00 UTC 2013


commit 1920e0d30a0800c4bc56e90f4ec7719af1b20846
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Jan 16 18:38:19 2013 +0200

    Own unowned -services libexec dirs (#894464, Michael Scherer).
    
    - Fix -services unit file permissions (#732936, Michal Schmidt).

 iptables.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/iptables.spec b/iptables.spec
index 6858466..729b4ed 100644
--- a/iptables.spec
+++ b/iptables.spec
@@ -25,7 +25,7 @@
 Name: iptables
 Summary: Tools for managing Linux kernel packet filtering capabilities
 Version: 1.4.16.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
 Source1: iptables.init
 Source2: iptables-config
@@ -151,9 +151,9 @@ install -c -m 755 ip6tables-config %{buildroot}/etc/sysconfig/ip6tables-config
 %if %{with systemd}
 # install systemd service files
 install -d -m 755 %{buildroot}/%{_unitdir}
-install -c -m 755 %{SOURCE3} %{buildroot}/%{_unitdir}
+install -c -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}
 sed -e 's;iptables;ip6tables;g' -e 's;IPv4;IPv6;g' -e 's;/usr/libexec/ip6tables;/usr/libexec/iptables;g' < %{SOURCE3} > ip6tables.service
-install -c -m 755 ip6tables.service %{buildroot}/%{_unitdir}
+install -c -m 644 ip6tables.service %{buildroot}/%{_unitdir}
 %endif
 
 # install legacy actions for service command
@@ -282,10 +282,13 @@ fi
 %attr(0755,root,root) %{script_path}/iptables.init
 %attr(0755,root,root) %{script_path}/ip6tables.init
 %if %{with systemd}
+%dir %{script_path}
 %{_unitdir}/iptables.service
 %{_unitdir}/ip6tables.service
 %endif
+%dir %{legacy_actions}/iptables
 %{legacy_actions}/iptables/save
+%dir %{legacy_actions}/ip6tables
 %{legacy_actions}/ip6tables/save
 
 %files utils
@@ -295,6 +298,10 @@ fi
 
 
 %changelog
+* Wed Jan 16 2013 Ville Skyttä <ville.skytta at iki.fi> - 1.4.16.2-6
+- Own unowned -services libexec dirs (#894464, Michael Scherer).
+- Fix -services unit file permissions (#732936, Michal Schmidt).
+
 * Thu Nov  8 2012 Thomas Woerner <twoerner at redhat.com> 1.4.16.2-5
 - fixed path of ip6tables.init in ip6tables.service
 


More information about the scm-commits mailing list