Bug 622794 - SELinux is preventing /sbin/consoletype access to a leaked netlink_route_socket file descriptor.
Summary: SELinux is preventing /sbin/consoletype access to a leaked netlink_route_sock...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ecd3cbe0c72...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-10 12:50 UTC by Rodd Clarkson
Modified: 2010-08-24 01:50 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.8.8-14.fc14
Clone Of:
Environment:
Last Closed: 2010-08-24 01:50:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rodd Clarkson 2010-08-10 12:50:07 UTC
Summary:

SELinux is preventing /sbin/consoletype access to a leaked netlink_route_socket
file descriptor.

Detailed Description:

[consoletype has a permissive type (consoletype_t). This access was not denied.]

SELinux denied access requested by the consoletype command. It looks like this
is either a leaked descriptor or consoletype 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 netlink_route_socket. 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:consoletype_t:s0
Target Context                system_u:system_r:firstboot_t:s0
Target Objects                netlink_route_socket [ netlink_route_socket ]
Source                        consoletype
Source Path                   /sbin/consoletype
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           initscripts-9.16-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.8.8-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35-3.fc14.x86_64 #1
                              SMP Fri Aug 6 19:41:28 UTC 2010 x86_64 x86_64
Alert Count                   3
First Seen                    Tue 10 Aug 2010 10:43:20 PM EST
Last Seen                     Tue 10 Aug 2010 10:43:43 PM EST
Local ID                      35583a43-45b3-4eb3-b57a-0231c2b4523a
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1281444223.313:115): avc:  denied  { read write } for  pid=1846 comm="consoletype" path="socket:[16689]" dev=sockfs ino=16689 scontext=system_u:system_r:consoletype_t:s0 tcontext=system_u:system_r:firstboot_t:s0 tclass=netlink_route_socket

node=(removed) type=SYSCALL msg=audit(1281444223.313:115): arch=c000003e syscall=59 success=yes exit=0 a0=1540fd0 a1=1541030 a2=1541060 a3=7fff138179d0 items=0 ppid=1845 pid=1846 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="consoletype" exe="/sbin/consoletype" subj=system_u:system_r:consoletype_t:s0 key=(null)



Hash String generated from  leaks,consoletype,consoletype_t,firstboot_t,netlink_route_socket,read,write
audit2allow suggests:

#============= consoletype_t ==============
allow consoletype_t firstboot_t:netlink_route_socket { read write };

Comment 1 Daniel Walsh 2010-08-11 13:17:35 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.8.8-12.fc14

Comment 2 Fedora Update System 2010-08-13 20:30:12 UTC
selinux-policy-3.8.8-14.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/selinux-policy-3.8.8-14.fc14

Comment 3 Fedora Update System 2010-08-24 01:49:42 UTC
selinux-policy-3.8.8-14.fc14 has been pushed to the Fedora 14 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.