clamd apparmor profile needs entry for havp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Jaunty |
Fix Released
|
Medium
|
Scott Kitterman |
Bug Description
Binary package hint: clamav
havp content scanner can use clamav to scan for viruses in downloaded files. It can use either libclamav or clamav daemon through socket. When the latter is selected havp fails to start and an entry is made in havp/error.log
TEST CASE:
1. install apparmor, clamav-daemon and havp
1a. usermod -a -G havp clamav (and restart clamav-daemon) !
2. configure havp to use clamav-daemon for scanning, edit /etc/havp/
ENABLECLAMLIB false
ENABLECLAMD true
CLAMDSOCKET /var/run/
3. try (re)starting havp, it should not start, with the following message:
root@utest-
Mounting /var/lib/
Cleaning up /var/spool/havp... done
Starting havp: Starting HAVP Version: 0.89
One or more scanners failed to initialize!
Check errorlog for errors.
Exiting..
4. check the logs for errors
/var/log/
03/09/2009 14:32:24 === Starting HAVP Version: 0.89
03/09/2009 14:32:24 Running as user: havp, group: havp
03/09/2009 14:32:24 --- Initializing Clamd Socket Scanner
03/09/2009 14:32:24 ERROR: Clamd Socket Scanner failed EICAR virus test! (Access denied.)
/var/log/messages:
Sep 3 14:32:24 utest-jj kernel: [192255.269799] type=1503 audit(125197754
It means clamd doesn't have access to havp's temporary files to scan them.
5. regression potential is considered very low, as the only change was to make apparmor less restrictive
Changed in clamav (Ubuntu): | |
status: | New → Triaged |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Here's a possible solution for modifying clamd's apparmor profile.