Setting up encrypted remote logging in auditd.conf causes AVC denial and auditd to fail

Solution Verified - Updated -

Issue

  • Set up encrypted remote logging with Audit
  • Kerberos with auditd
  • AVC denials messages in auditd.log similar to:

    node=localhost.example.com type=AVC msg=audit(1635968387.295:5): avc:  denied  { add_name } for  pid=1490 comm="auditd" name="auditd_0" scontext=system_u:system_r:auditd_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir permissive=1
    node=localhost.example.com type=AVC msg=audit(1635968387.295:6): avc:  denied  { create } for  pid=1490 comm="auditd" name="auditd_0" scontext=system_u:system_r:auditd_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
    node=localhost.example.com type=AVC msg=audit(1635968387.296:7): avc:  denied  { write } for  pid=1490 comm="auditd" path="/var/tmp/auditd_0" dev="dm-3" ino=33444911 scontext=system_u:system_r:auditd_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
    

Environment

  • Red Hat Enterprise Linux 7
    • audit service

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