[Bug 708395] Re: clamdscan can't scan anything

Andrew 708395 at bugs.launchpad.net
Wed Jan 26 23:54:50 UTC 2011


** Description changed:

  Binary package hint: clamav-daemon
  
  No matter what directory(ies) or file(s) I try to scan with clamdscan, I
  receive the following error immediately:
  
  
  root at uhs:/raid/Share/Public/# clamdscan -v /raid/Share/Public/
  /raid/Share/Public: lstat() failed: Permission denied. ERROR
  
  ----------- SCAN SUMMARY -----------
  Infected files: 0
  Total errors: 1
  Time: 0.004 sec (0 m 0 s)
  root at uhs:/raid/Share/Public/#
  
  
  /raid/Share/Public has 777 permissions:
  
  
  root at uhs:/raid/Share/Public# sudo -u clamav stat /raid/Share/Public/
-   File: `/raid/Share/Public/'
-   Size: 6           Blocks: 0          IO Block: 4096   directory
+   File: `/raid/Share/Public/'
+   Size: 6           Blocks: 0          IO Block: 4096   directory
  Device: 900h/2304d  Inode: 54526208    Links: 2
  Access: (0777/drwxrwxrwx)  Uid: ( 1000/awensley)   Gid: (  120/   admin)
  Access: 2011-01-19 01:00:00.304365306 -0600
  Modify: 2011-01-18 22:47:06.793592673 -0600
  Change: 2011-01-19 00:42:52.023813550 -0600
- root at uhs:/raid/Share/Public# 
+ root at uhs:/raid/Share/Public#
  
  
  I tried adding clamav to the admin and root user groups.  No difference.
  
  After reading through this bug report:
  https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/450250
  
  I added the following lines to /etc/apparmor.d/usr.sbin.clamd:
  
  
  /raid/ r,
  /raid/** r,
  
  
  Restarted apparmor and clamav-daemon, same problem.  Also, the lines allowing the user's home directory to be scanned were already in there, so I'm definitely using a version in which the developers believe that bug is fixed.
  
  I've even disabled apparmor and selinux completely by running:
  
  
  root at uhs:/raid/Share/Public# service apparmor teardown
-  * Unloading AppArmor profiles                                     [ OK ] 
+  * Unloading AppArmor profiles                                     [ OK ]
  root at uhs:/raid/Share/Public# echo 0 > /selinux/enforce
- root at uhs:/raid/Share/Public# 
+ root at uhs:/raid/Share/Public#
  
  
  Restarted clamav-daemon, and still had the same problem.
  I receive this same error message no matter what I try to scan - even my home directory - and it's always immediately.  I have the same issue on 5 separate Ubuntu 10.04 machines, 3 of which are servers.
  
  After asking this question on Ask Ubuntu:
  http://askubuntu.com/questions/22307/why-cant-clamdscan-scan-anything/
  
  I've concluded that this is a bug.
  
  
  Description:	Ubuntu 10.04.1 LTS
  Release:	10.04
  ClamAV 0.96.5/12572/Tue Jan 25 22:02:00 2011
  clamav-daemon:
-   Installed: 0.96.5+dfsg-1ubuntu1.10.04.1
-   Candidate: 0.96.5+dfsg-1ubuntu1.10.04.1
-   Version table:
-  *** 0.96.5+dfsg-1ubuntu1.10.04.1 0
-         500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
-         100 /var/lib/dpkg/status
-      0.96.3+dfsg-2ubuntu1.0.10.04.2 0
-         500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
-      0.96+dfsg-2ubuntu1 0
-         500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
+   Installed: 0.96.5+dfsg-1ubuntu1.10.04.1
+   Candidate: 0.96.5+dfsg-1ubuntu1.10.04.1
+   Version table:
+  *** 0.96.5+dfsg-1ubuntu1.10.04.1 0
+         500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
+         100 /var/lib/dpkg/status
+      0.96.3+dfsg-2ubuntu1.0.10.04.2 0
+         500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
+      0.96+dfsg-2ubuntu1 0
+         500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: clamav-daemon 0.96.5+dfsg-1ubuntu1.10.04.1
  ProcVersionSignature: Ubuntu 2.6.32-27.49-server 2.6.32.26+drm33.12
  Uname: Linux 2.6.32-27-server x86_64
  Architecture: amd64
  Date: Wed Jan 26 17:13:11 2011
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
  ProcEnviron:
-  LANG=en_US.utf8
-  SHELL=/bin/bash
+  LANG=en_US.utf8
+  SHELL=/bin/bash
  SourcePackage: clamav

** Description changed:

  Binary package hint: clamav-daemon
  
  No matter what directory(ies) or file(s) I try to scan with clamdscan, I
  receive the following error immediately:
  
- 
+ ----------------------------------
  root at uhs:/raid/Share/Public/# clamdscan -v /raid/Share/Public/
  /raid/Share/Public: lstat() failed: Permission denied. ERROR
  
  ----------- SCAN SUMMARY -----------
  Infected files: 0
  Total errors: 1
  Time: 0.004 sec (0 m 0 s)
  root at uhs:/raid/Share/Public/#
- 
+ ----------------------------------
  
  /raid/Share/Public has 777 permissions:
  
- 
+ ----------------------------------
  root at uhs:/raid/Share/Public# sudo -u clamav stat /raid/Share/Public/
    File: `/raid/Share/Public/'
    Size: 6           Blocks: 0          IO Block: 4096   directory
  Device: 900h/2304d  Inode: 54526208    Links: 2
  Access: (0777/drwxrwxrwx)  Uid: ( 1000/awensley)   Gid: (  120/   admin)
  Access: 2011-01-19 01:00:00.304365306 -0600
  Modify: 2011-01-18 22:47:06.793592673 -0600
  Change: 2011-01-19 00:42:52.023813550 -0600
  root at uhs:/raid/Share/Public#
- 
+ ----------------------------------
  
  I tried adding clamav to the admin and root user groups.  No difference.
  
  After reading through this bug report:
  https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/450250
  
  I added the following lines to /etc/apparmor.d/usr.sbin.clamd:
  
- 
+ ----------------------------------
  /raid/ r,
  /raid/** r,
+ ----------------------------------
  
- 
- Restarted apparmor and clamav-daemon, same problem.  Also, the lines allowing the user's home directory to be scanned were already in there, so I'm definitely using a version in which the developers believe that bug is fixed.
+ Restarted apparmor and clamav-daemon, same problem.  Also, the lines
+ allowing the user's home directory to be scanned were already in there,
+ so I'm definitely using a version in which the developers believe that
+ bug is fixed.
  
  I've even disabled apparmor and selinux completely by running:
  
- 
+ ----------------------------------
  root at uhs:/raid/Share/Public# service apparmor teardown
   * Unloading AppArmor profiles                                     [ OK ]
  root at uhs:/raid/Share/Public# echo 0 > /selinux/enforce
  root at uhs:/raid/Share/Public#
- 
+ ----------------------------------
  
  Restarted clamav-daemon, and still had the same problem.
  I receive this same error message no matter what I try to scan - even my home directory - and it's always immediately.  I have the same issue on 5 separate Ubuntu 10.04 machines, 3 of which are servers.
  
  After asking this question on Ask Ubuntu:
  http://askubuntu.com/questions/22307/why-cant-clamdscan-scan-anything/
  
  I've concluded that this is a bug.
  
- 
+ ----------------------------------
  Description:	Ubuntu 10.04.1 LTS
  Release:	10.04
  ClamAV 0.96.5/12572/Tue Jan 25 22:02:00 2011
  clamav-daemon:
    Installed: 0.96.5+dfsg-1ubuntu1.10.04.1
    Candidate: 0.96.5+dfsg-1ubuntu1.10.04.1
    Version table:
   *** 0.96.5+dfsg-1ubuntu1.10.04.1 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          100 /var/lib/dpkg/status
       0.96.3+dfsg-2ubuntu1.0.10.04.2 0
          500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
       0.96+dfsg-2ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: clamav-daemon 0.96.5+dfsg-1ubuntu1.10.04.1
  ProcVersionSignature: Ubuntu 2.6.32-27.49-server 2.6.32.26+drm33.12
  Uname: Linux 2.6.32-27-server x86_64
  Architecture: amd64
  Date: Wed Jan 26 17:13:11 2011
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
  ProcEnviron:
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: clamav

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.
https://bugs.launchpad.net/bugs/708395

Title:
  clamdscan can't scan anything



More information about the Ubuntu-server-bugs mailing list