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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
