use of FILDES?

Create issue
Issue #2 new
Brandon Murphy created an issue

I'm having some issues with permissions when having clamd run as a dedicated user different than the user running python.

>>> cd = pyclamd.ClamdAgnostic() 
>>> cd.ping() 
True 
>>> cd.scan_file('/tmp/eicar.com') 
{'/tmp/eicar.com': ('ERROR', 'lstat() failed: No such file or directory.')}

In order to get clamdscan to work I have to pass the --fdpass command to it, which I believe causes the client to use FILDES instead of SCAN.

Is there any chance to implement the FILDES scan method using file descriptors? I'm guessing this shouldn't be too bad to implement, but I don't know much about python.

https://docs.python.org/2/library/os.html#file-descriptor-operations

Comments (0)

  1. Log in to comment