Bug 722764

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:16d20c787a355244e81c7ecad59c34b440059999a9103ca94986213046febbf5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 07:34:17 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-17 15:39:33 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 ip6tables-resto /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                        ip6tables-resto
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.rc6.git6.1.fc16.x86_64 #1
                              SMP Sun Jul 10 16:00:07 UTC 2011 x86_64 x86_64
Alert Count                   7
First Seen                    dim. 17 juil. 2011 16:56:03 CEST
Last Seen                     dim. 17 juil. 2011 17:26:16 CEST
Local ID                      83c50a80-c8fc-4ea5-94f7-3e4b62556a15

Raw Audit Messages
type=AVC msg=audit(1310916376.954:297): avc:  denied  { getattr } for  pid=6426 comm="ip6tables-resto" 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(1310916376.954:297): arch=x86_64 syscall=statfs success=yes exit=0 a0=35cee0895c a1=7fff58e81d90 a2=7fff58e81d00 a3=35cdf2cda0 items=0 ppid=6417 pid=6426 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ip6tables-resto exe=/sbin/xtables-multi subj=system_u:system_r:iptables_t:s0 key=(null)

Hash: ip6tables-resto,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:34:17 UTC
Fixed in selinux-policy-3.10.0-6.fc16