-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rick Macdougall wrote: > Andy Ruddock wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> I'm running Ubuntu 8.10 AMD64 and have clamav installed from the >> repositories. >> I've compiled a "hello world" program with permissions 0777 >> the command >> clamdscan hello >> returns >> /hello: Access denied. ERROR >> >> I don't understand why this is so, where do the permissions required to >> scan this file fail? >> >> BTW running "clamdscan - </hello" works fine, and even changing the >> ownership on the file to clamav:clamav fails. >> > > Perhaps it is in a directory that the clamav user does not have access too ? > > Try copying the file to /tmp and trying it there. > > Regards, > > Rick
Ok, that works. Now I'm really confused. I made another directory with the same permissions as tmp, clamdscan failed in that - then I remembered reading about a similar problem somebody had with another application. Turning AppArmor off allows clamdscan to scan as expected. I'll need to investigate AppArmor now. Thanks. - -- Andy Ruddock - ------------ [email protected] (GPG Key ID 0xA622D452) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknH4GIACgkQfSkWkaYi1FKG3wCdH1HmUTi+SUHALlx6ZDndgpa7 1rQAoIYp60QWN20bzg56SphqqE9zMx3i =7pQF -----END PGP SIGNATURE----- _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
