Bug 669714 - SELinux is preventing /sbin/consoletype from read, write access on the netlink_route_socket netlink_route_socket.
Summary: SELinux is preventing /sbin/consoletype from read, write access on the netlin...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2ba6a399714...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-14 14:03 UTC by Maxwell Bottiger
Modified: 2011-05-26 20:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-26 20:41:23 UTC
Type: ---


Attachments (Terms of Use)

Description Maxwell Bottiger 2011-01-14 14:03:34 UTC
SELinux is preventing /sbin/consoletype from read, write access on the netlink_route_socket netlink_route_socket.

*****  Plugin catchall (50.5 confidence) suggests  ***************************

If you believe that consoletype should be allowed read write access on the netlink_route_socket netlink_route_socket by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep /sbin/consoletype /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

*****  Plugin leaks (50.5 confidence) suggests  ******************************

If you want to ignore consoletype trying to read write access the netlink_route_socket netlink_route_socket, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /sbin/consoletype /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:consoletype_t:s0-s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                netlink_route_socket [ netlink_route_socket ]
Source                        consoletype
Source Path                   /sbin/consoletype
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           initscripts-9.20.1-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-19.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP
                              Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   5
First Seen                    Tue 11 Jan 2011 04:29:53 PM EST
Last Seen                     Wed 12 Jan 2011 11:26:06 AM EST
Local ID                      cd92bb17-b055-46eb-a0f3-9fe200d8b801

Raw Audit Messages
type=AVC msg=audit(1294849566.236:35724): avc:  denied  { read write } for  pid=27554 comm="consoletype" path="socket:[28359]" dev=sockfs ino=28359 scontext=unconfined_u:system_r:consoletype_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=netlink_route_socket

consoletype,consoletype_t,unconfined_t,netlink_route_socket,read,write
type=SYSCALL msg=audit(1294849566.236:35724): arch=x86_64 syscall=execve success=yes exit=0 a0=181c480 a1=181c4a0 a2=181c0c0 a3=8 items=0 ppid=27553 pid=27554 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=consoletype exe=/sbin/consoletype subj=unconfined_u:system_r:consoletype_t:s0-s0:c0.c1023 key=(null)
consoletype,consoletype_t,unconfined_t,netlink_route_socket,read,write

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

Comment 1 Daniel Walsh 2011-01-14 14:22:56 UTC
This is a leaked file descriptor, what tool were you running when you got this AVC?


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