Bug 673834 - 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 RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ntp
Version: rawhide
Hardware: i386
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-30 19:49 UTC by Thomas Naser
Modified: 2011-02-01 22:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-01 22:28:06 UTC
Type: ---


Attachments (Terms of Use)

Description Thomas Naser 2011-01-30 19:49:27 UTC
Detailed Description:

[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                          (removed)
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                     (removed)
Platform                      Linux procop3 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct
                              18 23:56:17 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Sun 30 Jan 2011 02:19:37 PM EST
Last Seen                     Sun 30 Jan 2011 02:19:37 PM EST
Local ID                      52b60dd1-276c-4ab6-84f8-6a8a4ddbe342
Line Numbers                  

Raw Audit Messages            

node=procop3 type=AVC msg=audit(1296415177.64:21): avc:  denied  { read write } for  pid=1380 comm="ntpd" path="socket:[13160]" dev=sockfs ino=13160 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:firstboot_t:s0 tclass=netlink_route_socket

node=procop3 type=SYSCALL msg=audit(1296415177.64:21): arch=40000003 syscall=11 success=yes exit=0 a0=9f90d40 a1=9f91020 a2=9f912a8 a3=9f91020 items=0 ppid=1379 pid=1380 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)




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2011-02-01 22:28:06 UTC
Fixed in selinux-policy-3.9.13-6.fc15.noarch


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