Bug 1342235

Summary: SELinux is preventing /usr/sbin/ebtables-restore from getattr access on the file /run/firewalld/temp.gOUgl_.
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Koten <jkoten>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-77.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 02:30:48 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 Jiri Koten 2016-06-02 17:36:06 UTC
Description of problem:
Firewalld failed to start.

systemd[1]: Starting firewalld - dynamic firewall daemon...
firewalld[11463]: FATAL ERROR: Fork #1 failed: 13 (Permission denied)
firewalld[11463]: ERROR: Traceback (most recent call last):
                                         File "/usr/sbin/firewalld", line 134, in startup
                                           os.mkdir(config.FIREWALLD_TEMPDIR, 0o750)...
systemd[1]: firewalld.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start firewalld - dynamic firewall daemon.
systemd[1]: Unit firewalld.service entered failed state.
systemd[1]: firewalld.service failed.


Version-Release number of selected component (if applicable):
firewalld-0.4.2-1.el7
selinux-policy-3.13.1-75.el7


SELinux is preventing /usr/sbin/ebtables-restore from getattr access on the file /run/firewalld/temp.gOUgl_.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that ebtables-restore should be allowed getattr access on the temp.gOUgl_ file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep ebtables-restor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:iptables_t:s0
Target Context                system_u:object_r:firewalld_var_run_t:s0
Target Objects                /run/firewalld/temp.gOUgl_ [ file ]
Source                        ebtables-restor
Source Path                   /usr/sbin/ebtables-restore
Port                          <Unknown>
Host                          hal
Source RPM Packages           iptables-1.4.21-16.el7.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-75.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     hal
Platform                      Linux hal 3.10.0-394.el7.rhel73drm.23.x86_64 #1
                              SMP Tue May 24 14:03:17 EDT 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-06-02 19:23:53 CEST
Last Seen                     2016-06-02 19:24:04 CEST
Local ID                      44728c22-da61-439f-b508-596389a9b312

Raw Audit Messages
type=AVC msg=audit(1464888244.108:4639): avc:  denied  { getattr } for  pid=11959 comm="iptables-restor" path="/run/firewalld/temp.gOUgl_" dev="tmpfs" ino=1398216 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:firewalld_var_run_t:s0 tclass=file

Comment 7 errata-xmlrpc 2016-11-04 02:30:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2283.html