Closed (fixed)
Project:
ClamAV
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2012 at 14:54 UTC
Updated:
12 Sep 2018 at 11:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
manarth commentedRight now it won't be possible.
The syntax for connecting to a unix socket would be:
Clam AV's daemon mode currently uses this connection code (in clamav.inc):
The way the UI is set up at the moment, you could configure the hostname correctly, but you can't set the port to be NULL, and even if you could, the code checks that both
$hostand$porthave a value, before it'll try to connect.It's a useful feature so we'll probably refactor the code at some point to allow local socket connection, but patches are welcome if you manage to get this working.
Comment #2
manarth commentedFixed in D8 - there's an option in the admin area to use Unix-sockets.
We should probably back-port this to D7.
Comment #3
manarth commentedApologies, this is somewhat of a mega-patch.
This patch backports the ability to use unix-socket mode for connecting to ClamAV.
It also refactors the configuration form UI, to improve the usability of the form, matching the UI and wording that's provided in 8.x-1.x.
Comment #5
manarth commentedCommitted to 7.x-1.x.
Comment #7
mohammed76how do I configure the local socket instead of ip and port? I still see ip and port in the configuration screen and I can't see any mention of a local socket.
Comment #8
mcdruid commented@mohammed76 what version/release of clamav are you running?
The stable release for D7 was made some time ago now:
...perhaps it's time we rolled 7.x-1.1 ... in the meantime, try the dev version.