Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1340909

Summary: Allow firewalld to write into ifcfg files for consistent zone bindings
Product: [Fedora] Fedora Reporter: Thomas Woerner <twoerner>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, todoleza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-158.21.fc23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-14 00:24:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Woerner 2016-05-30 16:15:00 UTC
Description of problem:
For the fix for #1066037, there is an additional change required:

allow firewalld_t net_conf_t:dir write;

Firewalld is trying to change the ZONE setting in the ifcfg file that is using the interface, for which the zone binding has been requested. Only if there is an ifcfg file using this interface.

There is a new te file for RHEL-7 that contains the requested change: http://people.redhat.com/twoerner/firewalld/0.4.2-1.el7/firewalld-0.4.te

Please add this for F-23, F-24 and rawhide.

Comment 1 Lukas Vrabec 2016-06-02 13:56:23 UTC
Thomas, 
Could you attach AVCs for this issue?

Comment 2 Thomas Woerner 2016-06-02 14:43:43 UTC
This is from RHEl-7:

avc:  denied  { write } for  pid=23778 comm="firewalld" name="network-scripts" dev="sda7" ino=101097109 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=dir

Comment 3 Thomas Woerner 2016-06-02 14:58:53 UTC
F-23:

avc:  denied  { write } for  pid=8714 comm="firewalld" name="network-scripts" dev="sda2" ino=2883890 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=dir permissive=0

Comment 4 Fedora Update System 2016-07-02 20:54:30 UTC
selinux-policy-3.13.1-158.21.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7bed6e7c72

Comment 5 Fedora Update System 2016-07-14 00:23:17 UTC
selinux-policy-3.13.1-158.21.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.