Closed (outdated)
Project:
ClamAV
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 02:19 UTC
Updated:
17 Aug 2016 at 10:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ksenzeeComment #2
manarth commentedCommitted to 7.x-1.x dev. Thanks!
Comment #3
manarth commentedThinking about it, this should probably be back-ported to 6.x at some point too.
Comment #4
andyzhang commentedI am using 7.x-1.0-alpha2 and it seems the permission issue is still there.
Comment #5
andyzhang commentedAfter some digging I found that the permission issue I talked about in #4 is caused by an ubuntu setting.
In my Ubuntu server I set the clamd's TemporaryDirectory to /var/tmp. In order to get the INSTREAM running correctly, I need to add the following lines to the /etc/apparmor.d/usr.sbin.clamd
Without the above setting I always get the following error in the /var/log/syslog
Although I fixed my Ubuntu server issue, I don't know how to make an equivalent changes to the RedHat 6 server. Does anyone know how to do that? Thanks
Comment #6
rooby commentedSeems like this needs some docs as per #4 & #5.
Comment #7
srees commentedI had issues as well on 6.x with the daemon getting permission denied since php/apache insists on 0600 perms for the tmp directory on file uploads, and unless I wanted to run clam as www-data...well, I couldn't access the file to scan it. I initially made a successful patch that saved the current file perms, chmod'd it to 660 (added clamav to www-data group), then restored the file perms after the scan. However, I figured INSTREAM was probably the better way to go...
I wanted to comment that the patch provided works perfectly when transplanted to 6.x. I couldn't port my copy of it though because my clamav is already modified to support several additional things. Thank you very much.
Comment #8
manarth commentedClamAV-6.x is now unsupported, so there are no plans to back-port the patch.
INSTREAM is working as expected in ClamAV 7.x and 8.x.
For documentation of the non-Drupal components, I'd initially suggest http://www.clamav.net/documents/installing-clamav as the canonical guide, to avoid having to maintain a parallel set of documentation that isn't related to the Drupal setup.