Bug 692075 - SELinux is preventing /usr/sbin/ntpd access to a leaked netlink_route_socket file descriptor
Summary: SELinux is preventing /usr/sbin/ntpd access to a leaked netlink_route_socket ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 695834 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-30 11:20 UTC by Varuna Seneviratna
Modified: 2013-01-10 06:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-30 20:40:33 UTC
Type: ---


Attachments (Terms of Use)

Description Varuna Seneviratna 2011-03-30 11:20:54 UTC
[ntpd has a permissive type (ntpd_t). This access was not denied.]

SELinux denied access requested by the ntpd command. It looks like this is
either a leaked descriptor or ntpd 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:ntpd_t:s0
Target Context                system_u:system_r:firstboot_t:s0
Target Objects                netlink_route_socket [ netlink_route_socket ]
Source                        ntpd
Source Path                   /usr/sbin/ntpd
Port                          <Unknown>
Host                          <Host Name>
Source RPM Packages           ntp-4.2.6p2-7.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-3.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     <Host Name>
Platform                      Linux <Host Name> 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct
                              18 23:56:17 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Wed 30 Mar 2011 03:42:45 PM IST
Last Seen                     Wed 30 Mar 2011 03:42:45 PM IST
Local ID                      0e2aa8c4-2337-4f83-92e2-1dc09dcd7950
Line Numbers                  

Raw Audit Messages            

node=<Host Name> type=AVC msg=audit(1301479965.229:15): avc:  denied  { read write } for  pid=1527 comm="ntpd" path="socket:[14048]" dev=sockfs ino=14048 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:firstboot_t:s0 tclass=netlink_route_socket

node=<Host Name> type=SYSCALL msg=audit(1301479965.229:15): arch=40000003 syscall=11 success=yes exit=0 a0=8bdcd40 a1=8bdd020 a2=8bdd2a8 a3=8bdd020 items=0 ppid=1526 pid=1527 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ntpd" exe="/usr/sbin/ntpd" subj=system_u:system_r:ntpd_t:s0 key=(null)

Comment 1 Daniel Walsh 2011-03-30 19:37:10 UTC
Did this happen on install, after first boot?

Comment 2 Varuna Seneviratna 2011-03-30 20:28:38 UTC
Yes, This Happened the first time I logged in after first Boot

Comment 3 Daniel Walsh 2011-03-30 20:40:33 UTC
I think it is fixed in the latest code.

You should yum update.

Comment 4 Miroslav Grepl 2011-04-13 10:13:59 UTC
*** Bug 695834 has been marked as a duplicate of this bug. ***


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