Bug 723004 - SELinux is preventing /sbin/xtables-multi from 'getattr' accesses on the système de fichiers /proc.
Summary: SELinux is preventing /sbin/xtables-multi from 'getattr' accesses on the syst...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7d72df35990...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 18:01 UTC by Nicolas Mailhot
Modified: 2011-07-19 07:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-19 07:31:38 UTC
Type: ---


Attachments (Terms of Use)

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


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