Menu

#126 clamd_mod unix domain socket do not work

modules-0.5.x
open
nobody
None
1
2023-03-11
2021-07-26
Anonymous
No

I compiled c_icap-0.5.8+c_icap_modules-0.5.5 on NetBSD without pkgrsrc.
(on amd64/9.2, i386/9.9.86, aarch64/9.9.86)

I configured c_icap with clamd_mod and communicate clamd via unix domain socket,
got following error at ServerLog (DebugLevel 1).

Sun Jul 25 18:53:34 2021, 4420/3766304768, clamd_scan: parse error. Response string: No file descriptor received. ERRORSun Jul 25 18:53:34 2021, 4420/3766304768, Failed to scan web object
Sun Jul 25 18:53:34 2021, 4420/3766304768, Error while scanning for virus. Aborting....
Sun Jul 25 18:53:34 2021, 4420/3766304768, An error occured in end-of-data handler !return code : -1, req->allow204=1, req->allow206=0

I changed send_fd() at services/virus_scan/clamd_mod.c to same way to clamav's send_fdpass() at clamdscan/proto.c, problem fixed.

Please check attached patch.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2021-07-26
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2023-03-11
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel