Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64617

ClamAV failing to scan moodledata/localcache files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.7
    • Fix Version/s: None
    • Component/s: Antivirus, Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_34_STABLE
    • Testing Instructions:
      Hide
      1. Install Clamav daemon
      2. Enable clamav in plugins
      3. Config clamav to use Unix domain socket
      4. Config clamav pathtounixsocket to /var/run/clamav/clamd.ctl
      5. Config clamfailureonupload: Treat files as ok
      6. Enable wikimedia repository
      7. Edit a course
      8. Add a label
      9. Add an image from the atto text editor
      10. select wikimedia repository
      11. search for "monkey" and add image
      12. In /var/log/clamav/clamav.log you'll see an error "Can't open file or directory"
      Show
      Install Clamav daemon Enable clamav in plugins Config clamav to use Unix domain socket Config clamav pathtounixsocket to /var/run/clamav/clamd.ctl Config clamfailureonupload: Treat files as ok Enable wikimedia repository Edit a course Add a label Add an image from the atto text editor select wikimedia repository search for "monkey" and add image In /var/log/clamav/clamav.log you'll see an error "Can't open file or directory"

      Description

      When uploading a file via the wikipmedia repository (this isn't specifically about wikimedia) files are temporarily parked in /moodledata/localcache where ClamAV tries to check it, but I'm getting the error "Can't open file or directory ERROR" in the clamav logs.

      Note:

      • This isn't about /tmp. Files uploaded using the file manager dialogue and the "Upload a file" are processed correctly.
      • clamav is in the www-data group
      • moodledata/localcache is owned by www-data:www-data and group has rw permissions
      • I'm running the clamav-daemon
      • I've tried turning off apparmor

      So I'm a bit foxed about this error.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sharpchi Mark Sharp
            Participants:
            Component watchers:
            Ruslan Kabalin, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated: