[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH rhel5-branch] Set selinux context on iptables files (#658084)



Add the following files to the list that has their context setup after
install:

/etc/sysconfig/iptables
/etc/sysconfig/ip6tables
/etc/sysconfig/iptables-config

Resolves: rhbz#658084

NOTE: Tested against RHEL5.6 DVD
---
 packages.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/packages.py b/packages.py
index 3a9fd88..4903018 100644
--- a/packages.py
+++ b/packages.py
@@ -216,7 +216,9 @@ def setFileCons(anaconda):
                  "/etc/shadow", "/etc/shadow-", "/etc/gshadow",
                  "/var/log/lastlog", "/var/log/btmp",
                  "/var/lib/multipath", "/var/lib/multipath/bindings",
-                 "/etc/multipath.conf", "/etc/sysconfig/keyboard"]
+                 "/etc/multipath.conf", "/etc/sysconfig/keyboard",
+                 "/etc/sysconfig/iptables", "/etc/sysconfig/ip6tables",
+                 "/etc/sysconfig/iptables-config"]
 
         vgs = []
         for entry in anaconda.id.partitions.requests:
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]