AVCs "denied { read }" seen when rsyslog is configured to read logs from files using "imfile" plugin
Issue
-
When
rsyslog
is configured to process logs using the imfile module, AVCs are displayedtype=SYSCALL msg=audit(TIMESTAMP:NN): [...] syscall=254 success=no exit=-13 [...] comm="in:imfile" exe="/usr/sbin/rsyslogd" subj=system_u:system_r:syslogd_t:s0 key=(null) type=AVC msg=audit(TIMESTAMP:NN): avc: denied { read } for pid=RSYSLOG comm="in:imfile" name="www" [...] scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir permissive=0
-
imfile processing is still functional
Environment
- Red Hat Enterprise Linux (RHEL) 7 and later
- rsyslog
- imfile
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.