SELinux is preventing clamscan from getattr access on the directory /sys/kernel/config
Issue
When clamav antivirus is installed on the system and the service is started, these messages appear in the logs:
SELinux is preventing clamscan from getattr access on the directory /sys/kernel/config.
SELinux is preventing /usr/bin/clamscan from read_policy access on the security Unknown.
Environment
RHEL 7
clamav antivirus
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.