selinux is blocking keepalived scripts

Solution Verified - Updated -

Issue

  • Scripts from /usr/libexec/keepalived called by keepalived are getting blocked.
  • The keepalived service lacks SELinux privleges to exec scripts, including tracking scripts and notification scripts.
  • Getting below AVC in /var/log/messages:
type=1400 audit(1442276258.336:33667): avc:  denied  { search } for  pid=23327 comm="killall" name="1034" dev=proc ino=10849 scontext=unconfined_u:system_r:keepalived_t:s0 tcontext=system_u:system_r:crond_t:s0-s0:c0.c1023 tclass=dir

Environment

  • Red Hat Enterprise Linux 6.6
  • SELinux-policy

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