<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The file /etc/apparmor.d/local/usr.sbin.clamd should contain the
    line<br>
    /var/zendto/** r,<br>
    which should be all you need, unless you've moved the library or
    anything from their default locations under /var/zendto.<br>
    <br>
    Something must be wrong in your settings for clamd to be trying to
    virus-scan /opt/zendto/www, it only ever scans files under
    /var/zendto.<br>
    If you have put your library under /opt/zendto/www then you need to
    add<br>
    /opt/zendto/www/** r,<br>
    to the end of the file and restart apparmor with<br>
    &nbsp;&nbsp;&nbsp; /etc/init.d/apparmor restart<br>
    and then it should work.<br>
    <br>
    Jules.<br>
    <br>
    On 08/02/2012 09:54, Nigel Kendrick wrote:
    <blockquote
cite="mid:CAECWQnS2=ySmC-+v6M04mxuvpxUZsgvk91=GOmEqGZ2T1svxTg@mail.gmail.com"
      type="cite">Post update I now have the library feature, but if I
      choose a file from it I get an error:<br>
      <br>
      Upload Error The attempt to virus-scan your drop-off failed.
      Please contact your administrator for assistance.<br>
      <br>
      Uploading files as before still works fine though.<br>
      <br>
      System log includes:<br>
      <br>
      Feb&nbsp; 7 17:29:25 asltux13 kernel: [7100015.431439] type=1400
      audit(1328635765.243:25): apparmor="DENIED" operation="open"
      parent=1 profile="/usr/sbin/clamd" name="/opt/zendto/www/"
      pid=29769 comm="clamd" requested_mask="r" denied_mask="r"
      fsuid=109 ouid=0<br>
      Feb&nbsp; 7 17:33:50 asltux13 kernel: [7100280.365885] type=1400
      audit(1328636030.179:26): apparmor="DENIED" operation="open"
      parent=1 profile="/usr/sbin/clamd" name="/opt/zendto/www/"
      pid=29791 comm="clamd" requested_mask="r" denied_mask="r"
      fsuid=109 ouid=0<br>
      <br>
      I tried adding the following to /etc/apparmor.d/usr.sbin.clamd:<br>
      <br>
      &nbsp; /opt/zendto/www/** kr,<br>
      &nbsp; /var/zendto/library/** kr,<br>
      <br>
      and restarted apparmor (and tried a reboot) but no joy.<br>
      <br>
      Any ideas?<br>
      <br>
      Ta<br>
      &nbsp;<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982
</pre>
  </body>
</html>