Bug 723004

Summary: SELinux is preventing /sbin/xtables-multi from 'getattr' accesses on the système de fichiers /proc.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7d72df359906751e2b0d01e483271328af6e776098dca245db79174d3ae909af
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 07:31:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nicolas Mailhot 2011-07-18 18:01:57 UTC
SELinux is preventing /sbin/xtables-multi from 'getattr' accesses on the système de fichiers /proc.

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

If you believe that xtables-multi should be allowed getattr access on the proc filesystem 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-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:proc_t:s0
Target Objects                /proc [ filesystem ]
Source                        iptables-restor
Source Path                   /sbin/xtables-multi
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           iptables-1.4.11.1-3.fc16
Target RPM Packages           filesystem-2.4.43-1.fc16
Policy RPM                    selinux-policy-3.10.0-4.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc7.git3.1.fc16.x86_64 #1
                              SMP Fri Jul 15 22:56:12 UTC 2011 x86_64 x86_64
Alert Count                   4
First Seen                    dim. 17 juil. 2011 21:14:09 CEST
Last Seen                     dim. 17 juil. 2011 22:00:35 CEST
Local ID                      f3ca89a3-c494-438c-aae8-7e51cd6d4166

Raw Audit Messages
type=AVC msg=audit(1310932835.583:1173): avc:  denied  { getattr } for  pid=10665 comm="iptables-restor" name="/" dev=proc ino=1 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1310932835.583:1173): arch=x86_64 syscall=statfs success=yes exit=0 a0=35cee0892f a1=7fff44f4b740 a2=7fff44f4b6b0 a3=35cda12fb3 items=0 ppid=10657 pid=10665 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=iptables-restor exe=/sbin/xtables-multi subj=system_u:system_r:iptables_t:s0 key=(null)

Hash: iptables-restor,iptables_t,proc_t,filesystem,getattr

audit2allow

#============= iptables_t ==============
allow iptables_t proc_t:filesystem getattr;

audit2allow -R

#============= iptables_t ==============
allow iptables_t proc_t:filesystem getattr;

Comment 1 Miroslav Grepl 2011-07-19 07:31:38 UTC
Fixed in selinux-policy-3.10.0-6.fc16