clamd scanning mimedefang temp files blocked by apparmor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Fix Released
|
Undecided
|
Scott Kitterman |
Bug Description
Testing MIMEDefang with sendmail and clamav-daemon I've found a problem. It seems that clamav-daemon's apparmor denies read access to mimedefang's temporary files, as seen in the logs:
/var/log/mail.log:
Aug 19 01:50:44 utest-nns32 mimedefang.
Aug 19 01:50:44 utest-nns32 mimedefang.
Aug 19 01:50:44 utest-nns32 mimedefang.
Aug 19 01:50:44 utest-nns32 mimedefang[4543]: p7IMohM5005045: Tempfailing because filter instructed us to
Aug 19 01:50:44 utest-nns32 sm-mta[5045]: p7IMohM5005045: Milter: data, reject=451 4.3.0 Problem running virus-scanner
Aug 19 01:50:44 utest-nns32 sm-mta[5045]: p7IMohM5005045: to=<email address hidden>, delay=00:00:00, pri=31210, stat=Problem running virus-scanner
/var/log/syslog:
Aug 19 01:44:11 utest-nns32 kernel: [ 404.626907] type=1400 audit(131370745
This should be fixed in Oneiric before we SRU/backport clamav 0.97.2 back to Natty/Lucid/etc.
Related branches
tags: | added: patch |
Changed in clamav (Ubuntu): | |
assignee: | nobody → Scott Kitterman (kitterman) |
status: | Confirmed → In Progress |
Adding the following rule to /etc/apparmor. d/usr.sbin. clamd resolves the problem apparently
/var/spool/ MIMEDefang/ ** r,
Scanning works:
Aug 19 02:04:31 utest-nns32 mimedefang. pl[4544] : MDLOG,p7IN4UXO0 05515,virus, Eicar-Test- Signature, 172.16. 21.1,<email address hidden>,<email address hidden>,[TESTMAIL] eicar test mail pl[4544] : Discarding because of virus Eicar-Test- Signature pl[4544] : filter: p7IN4UXO005515: discard=1
Aug 19 02:04:31 utest-nns32 mimedefang.
Aug 19 02:04:31 utest-nns32 mimedefang.