SELinux - ClamAV Socket (Permission denied)

Support for security such as Firewalls and securing linux
Post Reply
C3nt0s
Posts: 3
Joined: 2015/10/12 08:34:03

SELinux - ClamAV Socket (Permission denied)

Post by C3nt0s » 2015/10/12 08:39:24

Hey,

i installed ownCloud 8.1.3 on CentOS 7... no i want to enable the AntiVirus App with ClamAV.

When the ownCloud AntiVirus app tries to scan a file... i get the following error message in SELinux...

type=AVC msg=audit(1444637969.794:371): avc: denied { write } for pid=2086 comm="httpd" name="clamd.sock" dev="tmpfs" ino=19329 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:antivirus_var_run_t:s0 tclass=sock_file

The Apache user has the permission to access the clamd.sock... when selinux is disabled everything is working fine.

Is there a default rule which i can turn on or maybe another configuration to allow the access?

Hope anyone can help me :)

C3nt0s
Posts: 3
Joined: 2015/10/12 08:34:03

Re: SELinux - ClamAV Socket (Permission denied)

Post by C3nt0s » 2015/10/12 12:49:10

Found a Solution by myself with audit2allow

Post Reply