Re: [Clamav-devel] clamdscan problems (misunderstanding?)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Andy Ruddock
Date:  
To: ClamAV Development
Subject: Re: [Clamav-devel] clamdscan problems (misunderstanding?)
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
- ------------
(GPG Key ID 0xA622D452)
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net