Why can't rsyslog append log files on a Samba file share?

Solution Verified - Updated -

Issue

  • Why can't rsyslog append log files on a Samba file share when SELinux is enabled?

    Here is an example of the type of error message observed:

    type=AVC msg=audit(08/12/2021 10:22:54.337:991533662) : avc: denied { search } for
    pid=709187 comm=rs:main Q:Reg name=vsphere dev="dm-3" 
    ino=780140672  scontext=system_u:system
    _r:syslogd_t:s0 tcontext=system_u:object_r:samba_share_t:s0 tclass=dir 
    permissive=0
    

Environment

  • Red Hat Enterprise Linux
  • rsyslog

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