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

ClamAV failing to scan moodledata/localcache files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 3.4.7
    • Antivirus
    • None
    • MOODLE_34_STABLE
    • 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

            Unassigned Unassigned
            sharpchi Mark Sharp
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.