Skip to content

Commit c609c5b

Browse files
authored
Add step for freshclam configuration for SELinux users (#48)
If Freshclam is configured on an OS with SELinux enabled, the manually created file `/var/log/freshclam.log` does not have the right SELinux context. This means the freshclam service is unable to log to the created log file.
1 parent 3fe6a4c commit c609c5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/manual/Usage/Configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ chmod 600 /var/log/freshclam.log
117117
chown clamav /var/log/freshclam.log
118118
```
119119

120+
> _Tip_: If SELinux is enabled you probably need to set the right SELinux context on this newly created file, otherwise freshclam service won't be able to access this file. On Redhat-like systems, you should do `restorecon /var/log/freshclam.log`.
121+
120122
Now you *should* edit the configuration file `freshclam.conf` and point the *UpdateLogFile* directive to the log file. Finally, to run `freshclam` in the daemon mode, execute:
121123

122124
```bash

0 commit comments

Comments
 (0)