Bug 561529 - 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: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:be849ce3154...
: 559225 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-03 20:22 UTC by Matěj Cepl
Modified: 2018-04-11 08:40 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.6.32-89.fc12
Clone Of:
Environment:
Last Closed: 2010-02-20 00:21:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matěj Cepl 2010-02-03 20:22:56 UTC
Souhrn:

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

Podrobný popis:

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

SELinux denied access requested by the iptables-restor command. It looks like
this is either a leaked descriptor or iptables-restor 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.

Povolení přístupu:

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

Další informace:

Kontext zdroje                system_u:system_r:iptables_t:s0-s0:c0.c1023
Kontext cíle                 system_u:object_r:mtrr_device_t:s0
Objekty cíle                 /proc/mtrr [ file ]
Zdroj                         iptables
Cesta zdroje                  /sbin/iptables-multi
Port                          <Neznámé>
Počítač                    (removed)
RPM balíčky zdroje          iptables-1.4.6-1.el6
RPM balíčky cíle           
RPM politiky                  selinux-policy-3.6.32-75.el6
Selinux povolen               True
Typ politiky                  targeted
Vynucovací režim            Enforcing
Název zásuvného modulu     leaks
Název počítače            (removed)
Platforma                     Linux (removed) 2.6.32-12.el6.x86_64 #1
                              SMP Thu Jan 28 11:01:01 EST 2010 x86_64 x86_64
Počet upozornění           21
Poprvé viděno               St 3. únor 2010, 08:04:07 CET
Naposledy viděno             St 3. únor 2010, 08:04:07 CET
Místní ID                   c2f2424e-6c7a-4601-b431-5117b963d9ff
Čísla řádků              

Původní zprávy auditu      

node=(removed) type=AVC msg=audit(1265180647.794:51): avc:  denied  { write } for  pid=1921 comm="iptables-restor" path="/proc/mtrr" dev=proc ino=4026531925 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(1265180647.794:51): arch=c000003e syscall=59 success=yes exit=0 a0=1672ab0 a1=16820d0 a2=16383b0 a3=7fff083b0580 items=0 ppid=1842 pid=1921 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/iptables-multi" subj=system_u:system_r:iptables_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-75.el6,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-02-03 20:26:06 UTC
What tool were you using when this AVC was created?

Comment 2 Matěj Cepl 2010-02-03 21:32:03 UTC
I am not aware of any ... at 8:04, that's probably resuming computer from suspend.

Comment 3 Daniel Walsh 2010-02-04 14:03:32 UTC
*** Bug 559225 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2010-02-09 20:21:49 UTC
Miroslav add

ifdef(`hide_broken_symptoms',`
	dev_dontaudit_write_mtrr(iptables_t)
')

to F12, so we can get this into RHEL6

Comment 5 Miroslav Grepl 2010-02-10 11:06:35 UTC
Fixed in selinux-policy-3.6.32-87.fc12

Comment 6 Fedora Update System 2010-02-11 22:01:07 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 7 Fedora Update System 2010-02-13 00:40:11 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 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/F12/FEDORA-2010-1836

Comment 8 Fedora Update System 2010-02-20 00:19:17 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 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.