Bug 741555

Summary: policycoreutils block action for restorecon , iptables or more
Product: Red Hat Enterprise Linux 6 Reporter: Petr Sklenar <psklenar>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: dwalsh, mmalik
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-27 10:21:52 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 Petr Sklenar 2011-09-27 09:29:14 UTC
Description of problem:
policycoreutils block action for restorecon , iptables or more

Version-Release number of selected component (if applicable):
policycoreutils-2.0.83-19.15.el6.x86_64

How reproducible:
deterministic

Steps to Reproduce:
$ service iptables save
$ iptables: Saving firewall rules to /etc/sysconfig/iptables: [FAILED]
with policycoreutils-2.0.83-19.13.el6.i686 it works well !!!

$ rm -rf /etc/named.conf
$ touch /etc/named.conf
$ restorecon /etc/named.conf
$ echo $?
1
$ ls -laZ /etc/named.conf
-rw-r--r--. root root unconfined_u:object_r:named_conf_t:s0 /etc/named.conf
# with policycoreutils-2.0.83-19.13.el6.i686 it works well !!!


  
Actual results:
restorecon returns 1
iptables save does not work

Expected results:
restorecon returns 0 and change context
iptables save works

Additional info:

Comment 2 Petr Sklenar 2011-09-27 09:33:58 UTC
Its maybe caused by Bug 736153 or bug 739618

Comment 3 Petr Sklenar 2011-09-27 10:21:52 UTC

*** This bug has been marked as a duplicate of bug 740669 ***