Why does SELinux denied access to ntp while starting ntpd service

Solution Verified - Updated -

Issue

  • When starting ntpd with 'service ntpd start', the following error messages are generated in /var/log/messages:
Feb  8 20:33:02 sim-proxyagent-tp1 kernel: type=1400 audit(1297197182.565:649): avc:  denied  { read } for  pid=6309 comm="ntpd" name="drift" dev=cciss/c0d0p8 ino=2189056 scontext=user_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file

Feb  8 20:33:02 sim-proxyagent-tp1 kernel: type=1400 audit(1297197182.566:650): avc:  denied  { read } for  pid=6309 comm="ntpd" name="passwd" dev=cciss/c0d0p6 ino=4122613 scontext=user_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content