Bug 956881 - SELinux is preventing /usr/sbin/xtables-multi from 'read' accesses on the file /etc/firewalld/zones/public.xml.
Summary: SELinux is preventing /usr/sbin/xtables-multi from 'read' accesses on the fil...
Keywords:
Status: CLOSED DUPLICATE of bug 951900
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c9e10f38f8dbaea2f5d11d61045...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-25 21:41 UTC by Neil
Modified: 2013-04-26 06:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-26 06:36:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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