Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396293 - app-antivirus/clamav-0.97.3 and amavisd-new-2.7.0 use incompatible socket definition.
Summary: app-antivirus/clamav-0.97.3 and amavisd-new-2.7.0 use incompatible socket def...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-28 12:31 UTC by Olliver Schinagl
Modified: 2015-03-21 21:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olliver Schinagl 2011-12-28 12:31:56 UTC
clamav uses /var/run/clamav/clamd.sock for its socket location.
amavis uses /var/run/clamav/clamd for its socket location.

By default, these do not match and headaches ensure from this subtle difference.

ClamAV's clamd.sock sounds more logical and may be used by other applications, thus amavisd should be default also specify clamd.sock.

Reproducible: Always
Comment 1 Eray Aslan gentoo-dev 2011-12-28 16:31:26 UTC
Those are the default sockets from their respective packages.  Change one or the other to match in new installs.  Changing either socket and breaking existing installations is not a good choice.

Closing as invalid.
Comment 2 Olliver Schinagl 2011-12-29 08:24:31 UTC
I tend to disagree.

ClamAV sets up its socket.

Amavisd connects to THAT socket. I don't know when or where amavisd decided to use that socket, but clamav appearantly changed its naming a good wile ago.

I'm NOT talking about amavisd own socket, but about clamav's socket only.


I can agree that changing either socket and breaking existing installs is bad, but shouldn't be avoided to improve and correct future installs.

Taking it upstream to amavis.
Comment 3 Olliver Schinagl 2012-02-28 08:32:18 UTC
Thankfully, amavis dev's agree ;)

"Agreed, thanks for the suggestion.

Will be changed for 2.7.1 and 2.8.0:

- ClamAV-clamd and ClamAV-clamd-stream av scanners: changed socket name
  in a sample configuration file amavisd.conf to /var/run/clamav/clamd.sock
  (previously the socket name was /var/run/clamav/clamd); this makes it
  compatible with a default socket name under at least Gentoo and FreeBSD;


Mark"

So expect this change in the future.
Comment 4 Olliver Schinagl 2015-03-21 21:10:17 UTC
Just a brief update, this change has since been merged and released so shouldn't be a problem anymore.