Bug 559225 - SELinux is preventing /sbin/ip6tables-multi access to a leaked /proc/mtrr file descriptor.
Summary: SELinux is preventing /sbin/ip6tables-multi access to a leaked /proc/mtrr fil...
Keywords:
Status: CLOSED DUPLICATE of bug 561529
Alias: None
Product: Fedora
Classification: Fedora
Component: iptables
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:cd4096aceb8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-27 13:51 UTC by Ingimar Jonsson
Modified: 2010-02-04 14:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-02 13:49:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ingimar Jonsson 2010-01-27 13:51:25 UTC
Summary:

SELinux is preventing /sbin/ip6tables-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 ip6tables-resto command. It looks like
this is either a leaked descriptor or ip6tables-resto 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                unconfined_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-ipv6-1.4.5-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-69.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.5-127.fc12.x86_64 #1
                              SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64
Alert Count                   40
First Seen                    Wed 27 Jan 2010 01:50:32 PM GMT
Last Seen                     Wed 27 Jan 2010 01:50:32 PM GMT
Local ID                      de786c10-e05b-47dc-9ee6-ba2287c18390
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264600232.970:37341): avc:  denied  { write } for  pid=21059 comm="ip6tables-resto" path="/proc/mtrr" dev=proc ino=4026531909 scontext=unconfined_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(1264600232.970:37341): avc:  denied  { write } for  pid=21059 comm="ip6tables-resto" path="/proc/mtrr" dev=proc ino=4026531909 scontext=unconfined_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(1264600232.970:37341): arch=c000003e syscall=59 success=yes exit=0 a0=1d39480 a1=1d39c70 a2=1cf61c0 a3=7fff7c877c40 items=0 ppid=21048 pid=21059 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="ip6tables-resto" exe="/sbin/ip6tables-multi" subj=unconfined_u:system_r:iptables_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-69.fc12,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-01-27 16:36:57 UTC
Were you using a gui when this happened?

Comment 2 Ingimar Jonsson 2010-01-28 06:27:58 UTC
Yes I was.

Comment 3 Daniel Walsh 2010-01-28 13:53:14 UTC
WHich one?  I think it is leaking a file descriptor to /proc/mttr

Comment 4 Ingimar Jonsson 2010-01-29 12:42:54 UTC
I'm using gnome - I'm rather new to Linux so please have patience if my answers are not quit satisfying. Doing my best ;-)

Comment 5 Daniel Walsh 2010-01-29 14:29:39 UTC
Ingmar, no problem.  But what tool were you using to modify firewall rules when this happened?

Comment 6 Ingimar Jonsson 2010-02-01 06:35:46 UTC
I had just installed the OS and had turned off ip6tables;    chkconfig ip6tables off

I didn't use GUI to config the ip6tables.

Comment 7 Daniel Walsh 2010-02-01 20:44:46 UTC
Well I have no idea what is happening,  I will reassign to iptables to see if they have an idea.  

Does this happen everytime you boot?  Or just once?

Comment 8 Ingimar Jonsson 2010-02-02 06:25:52 UTC
This just happened once, while I was in the process of setting up the system, maybe I was to hasty in filing this bug ;-)

Comment 9 Daniel Walsh 2010-02-02 13:49:17 UTC
Ok we will ignore.  If it happens again, reopen please.

Comment 10 Daniel Walsh 2010-02-04 14:03:32 UTC

*** This bug has been marked as a duplicate of bug 561529 ***


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