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 - Allow firewalld to write into ifcfg files for consistent zone bindings
Summary: Allow firewalld to write into ifcfg files for consistent zone bindings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-30 16:15 UTC by Thomas Woerner
Modified: 2016-07-14 00:24 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-158.21.fc23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-14 00:24:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.