Bug 565316 - SELinux is preventing /usr/bin/updatedb "getattr" access on /proc/<pid>/net/stat.
Summary: SELinux is preventing /usr/bin/updatedb "getattr" access on /proc/<pid>/net/s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:47ee7991625...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-14 18:03 UTC by Tobias Muhlhofer
Modified: 2010-03-04 00:15 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-92.fc12
Clone Of:
Environment:
Last Closed: 2010-03-04 00:15:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tobias Muhlhofer 2010-02-14 18:03:45 UTC
Summary:

SELinux is preventing /usr/bin/updatedb "getattr" access on /proc//net/stat.

Detailed Description:

SELinux denied access requested by updatedb. It is not expected that this access
is required by updatedb and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

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

Additional Information:

Source Context                system_u:system_r:locate_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                /proc/<pid>/net/stat [ dir ]
Source                        updatedb
Source Path                   /usr/bin/updatedb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mlocate-0.22.2-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-78.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.x86_64 #1 SMP
                              Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   39
First Seen                    Fri 14 Aug 2009 03:54:28 AM CDT
Last Seen                     Sun 14 Feb 2010 03:10:02 AM CST
Local ID                      1ccc2c9b-937f-4c36-9a63-f07cab43355e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1266138602.937:153): avc:  denied  { getattr } for  pid=6418 comm="updatedb" path="/proc/6418/net/stat" dev=proc ino=4026531904 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_net_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1266138602.937:153): arch=c000003e syscall=6 success=no exit=-13 a0=1ca4c39 a1=7fff8838e500 a2=7fff8838e500 a3=370cd24590 items=0 ppid=6416 pid=6418 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=5 comm="updatedb" exe="/usr/bin/updatedb" subj=system_u:system_r:locate_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,catchall,updatedb,locate_t,proc_net_t,dir,getattr
audit2allow suggests:

#============= locate_t ==============
allow locate_t proc_net_t:dir getattr;

Comment 1 Daniel Walsh 2010-02-15 13:03:13 UTC
Miroslav add

kernel_dontaudit_search_network_state(locate_t)

Comment 2 Miroslav Grepl 2010-02-15 14:05:23 UTC
Fixed in selinux-policy-3.6.32-91.fc12

Comment 3 Fedora Update System 2010-02-23 20:56:28 UTC
selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12

Comment 4 Fedora Update System 2010-02-26 03:43:10 UTC
selinux-policy-3.6.32-92.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-2953

Comment 5 Fedora Update System 2010-03-04 00:11:53 UTC
selinux-policy-3.6.32-92.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.