Bug 564376
Summary: | service iptables save does not work in MLS | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.5 | CC: | mgrepl |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-30 07:50:22 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Milos Malik
2010-02-12 15:16:49 UTC
The problem is we did not have policy for iptables-save should be a pointer to iptables-multi correct? And iptables-multi should be labeled iptables_exec_t? Which means iptables-save should be running under a different context. The problem is that iptables-multi does not exist in RHEL5.5. So run_init service iptables save executes /sbin/iptables-save which has the sbin_t context. If we label it iptabels_exec_t what happens? Looks good. But in this case we should change the default context for /etc/sysconfig/iptables file from iptables_conf_t to etc_runtime_t. Because this file is created with etc_runtime_t context by iptables-save (we have this for /etc/sysconfig/iptables.save file) and it will not work after restorecon without this change. I agree. Fixed in selinux-policy-2.4.6-278.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0182.html |