Bug 573155 - SELinux is preventing /sbin/iptables-multi access to a leaked /proc/mtrr file descriptor.
Summary: SELinux is preventing /sbin/iptables-multi access to a leaked /proc/mtrr file...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:50327c2f323...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-13 01:46 UTC by Ajay Ramaswamy
Modified: 2010-04-20 18:02 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.7.15-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-24 00:49:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ajay Ramaswamy 2010-03-13 01:46:51 UTC
Summary:

SELinux is preventing /sbin/iptables-multi access to a leaked /proc/mtrr file
descriptor.

Detailed Description:

[iptables has a permissive type (iptables_t). This access was not denied.]

SELinux denied access requested by the iptables command. It looks like this is
either a leaked descriptor or iptables output was redirected to a file it is not
allowed to access. Leaks usually can be ignored since SELinux is just closing
the leak and reporting the error. The application does not use the descriptor,
so it will run properly. If this is a redirection, you will not get output in
the /proc/mtrr. You should generate a bugzilla on selinux-policy, and it will
get routed to the appropriate package. You can safely ignore this avc.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                system_u:system_r:iptables_t:s0-s0:c0.c1023
Target Context                system_u:object_r:mtrr_device_t:s0
Target Objects                /proc/mtrr [ file ]
Source                        iptables
Source Path                   /sbin/iptables-multi
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iptables-1.4.6-2.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.10-3.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33-0.52.rc8.git6.fc13.x86_64 #1 SMP Tue Feb 23
                              04:52:05 UTC 2010 x86_64 x86_64
Alert Count                   319
First Seen                    Fri 12 Mar 2010 10:45:51 PM IST
Last Seen                     Fri 12 Mar 2010 10:45:51 PM IST
Local ID                      62d2196c-9b3c-46ea-bfac-a03c71625561
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414151.250:135): avc:  denied  { write } for  pid=8783 comm="iptables" path="/proc/mtrr" dev=proc ino=4026531909 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1268414151.250:135): arch=c000003e syscall=59 success=yes exit=0 a0=1b66a70 a1=1b1a900 a2=1b1e2c0 a3=7fffacb9a380 items=0 ppid=8759 pid=8783 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/sbin/iptables-multi" subj=system_u:system_r:iptables_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  leaks,iptables,iptables_t,mtrr_device_t,file,write
audit2allow suggests:

#============= iptables_t ==============
allow iptables_t mtrr_device_t:file write;

Comment 1 Daniel Walsh 2010-03-15 03:47:45 UTC
Miroslav could you add
	dontaudit $1 mtrr_device_t:file write;
to
dev_dontaudit_write_mtrr 

for F12.

ajayr,   How did you get this to happen?   

Fixed in selinux-policy-3.7.14-4.fc13.noarch

Comment 2 Fedora Update System 2010-03-18 17:24:53 UTC
selinux-policy-3.7.15-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 3 Eric Paris 2010-03-22 19:14:22 UTC
seems like I just hit this as well.  I was running fully up2date F13 and I installed the Virtualization group.  After the virt packages finished installing I ran:

service libvirtd start

and out these popped.....

Comment 4 Eric Paris 2010-03-22 19:18:20 UTC
Mind you it doesn't reproduce now by simply restarting libvirtd....

Comment 5 Fedora Update System 2010-03-23 02:17:57 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 6 Fedora Update System 2010-03-24 00:48:59 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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