Bug 956881

Summary: SELinux is preventing /usr/sbin/xtables-multi from 'read' accesses on the file /etc/firewalld/zones/public.xml.
Product: [Fedora] Fedora Reporter: Neil <neilsbb>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c9e10f38f8dbaea2f5d11d61045edf23117aadf36672fba375143935f320e069
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-26 06:36:55 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 Neil 2013-04-25 21:41:06 UTC
Description of problem:
SELinux is preventing /usr/sbin/xtables-multi from 'read' accesses on the file /etc/firewalld/zones/public.xml.

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

If you believe that xtables-multi should be allowed read access on the public.xml 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 iptables /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_etc_rw_t:s0
Target Objects                /etc/firewalld/zones/public.xml [ file ]
Source                        iptables
Source Path                   /usr/sbin/xtables-multi
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iptables-1.4.18-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-35.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc8.git0.2.fc20.x86_64 #1
                              SMP Mon Apr 22 21:26:31 UTC 2013 x86_64 x86_64
Alert Count                   515
First Seen                    2013-04-22 16:49:53 PDT
Last Seen                     2013-04-25 14:26:00 PDT
Local ID                      0ff1130c-cfdb-4424-bc1d-64ebe38a7139

Raw Audit Messages
type=AVC msg=audit(1366925160.924:402): avc:  denied  { read } for  pid=873 comm="ip6tables" path="/etc/firewalld/zones/public.xml" dev="dm-1" ino=660426 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:firewalld_etc_rw_t:s0 tclass=file


type=SYSCALL msg=audit(1366925160.924:402): arch=x86_64 syscall=execve success=yes exit=0 a0=273c290 a1=27aa4d0 a2=2725fd0 a3=7fff33132da0 items=0 ppid=398 pid=873 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=ip6tables exe=/usr/sbin/xtables-multi subj=system_u:system_r:iptables_t:s0 key=(null)

Hash: iptables,iptables_t,firewalld_etc_rw_t,file,read

audit2allow

#============= iptables_t ==============
allow iptables_t firewalld_etc_rw_t:file read;

audit2allow -R
require {
	type firewalld_etc_rw_t;
	type iptables_t;
	class file read;
}

#============= iptables_t ==============
allow iptables_t firewalld_etc_rw_t:file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc8.git0.2.fc20.x86_64
type:           libreport

Potential duplicate: bug 951900

Comment 1 Miroslav Grepl 2013-04-26 06:36:55 UTC

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