Bug 547929

Summary: SELinux is preventing ntpd (ntpd_t) "mmap_zero" ntpd_t.
Product: [Fedora] Fedora Reporter: Bruce Bigby <bbigby64>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9f262bf58f80ebd841ad2d1e7be6dff9c10255e700355b8182beb81789fd4634
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-16 13:54:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruce Bigby 2009-12-16 01:44:17 UTC
Summary:

SELinux is preventing ntpd (ntpd_t) "mmap_zero" ntpd_t.

Detailed Description:

[ntpd has a permissive type (ntpd_t). This access was not denied.]

SELinux denied access requested by ntpd. It is not expected that this access is
required by ntpd 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:ntpd_t:s0
Target Context                system_u:system_r:ntpd_t:s0
Target Objects                None [ memprotect ]
Source                        ntpd
Source Path                   /usr/sbin/ntpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ntp-4.2.4p7-2.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-86.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32
                              EDT 2009 x86_64 x86_64
Alert Count                   3
First Seen                    Fri 06 Nov 2009 07:59:41 AM EST
Last Seen                     Fri 06 Nov 2009 07:59:41 AM EST
Local ID                      a9ff5282-6c6f-4a58-96f9-ea6fe97c6758
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1257512381.747:7): avc:  denied  { mmap_zero } for  pid=3436 comm="ntpd" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:ntpd_t:s0 tclass=memprotect

node=(removed) type=AVC msg=audit(1257512381.747:7): avc:  denied  { mmap_zero } for  pid=3436 comm="ntpd" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:ntpd_t:s0 tclass=memprotect

node=(removed) type=AVC msg=audit(1257512381.747:7): avc:  denied  { mmap_zero } for  pid=3436 comm="ntpd" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:ntpd_t:s0 tclass=memprotect

node=(removed) type=SYSCALL msg=audit(1257512381.747:7): arch=c000003e syscall=125 success=yes exit=0 a0=7fffc966a7c4 a1=0 a2=7fffc839de80 a3=7fff508981c0 items=0 ppid=1 pid=3436 auid=4294967295 uid=38 gid=38 euid=38 suid=38 fsuid=38 egid=38 sgid=38 fsgid=38 tty=(none) ses=4294967295 comm="ntpd" exe="/usr/sbin/ntpd" subj=system_u:system_r:ntpd_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.12-86.fc11,catchall,ntpd,ntpd_t,ntpd_t,memprotect,mmap_zero
audit2allow suggests:

#============= ntpd_t ==============
allow ntpd_t self:memprotect mmap_zero;

Comment 1 Daniel Walsh 2009-12-16 13:54:32 UTC

*** This bug has been marked as a duplicate of bug 538428 ***