Bug 722764 - 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:16d20c787a3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-17 15:39 UTC by Nicolas Mailhot
Modified: 2011-07-19 07:34 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

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


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