-
Notifications
You must be signed in to change notification settings - Fork 404
fix(clamav): enable TCP port #71929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(clamav): enable TCP port #71929
Conversation
Signed-off-by: Sanjay Kumar <[email protected]>
Signed-off-by: Sanjay Kumar <[email protected]>
Signed-off-by: Sanjay Kumar <[email protected]>
Signed-off-by: Sanjay Kumar <[email protected]>
Signed-off-by: Sanjay Kumar <[email protected]>
| mv "${{targets.destdir}}"/etc/clamav/clamd.conf.sample "${{targets.subpkgdir}}"/etc/clamav/clamd.conf | ||
| # Enable TCPSocket 3310 and set TCPAddr | ||
| sed -i 's/^#TCPSocket.*/TCPSocket 3310/; s/^#TCPAddr localhost/#TCPAddr 0.0.0.0/' "${{targets.subpkgdir}}"/etc/clamav/clamd.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do this to the /etc/clamd/clamd.conf.sample file instead as that one is being moved here anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -e "s:^\#\(LogTime\).*:\1 yes:" \ | ||
| -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ | ||
| -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ | ||
| "${{targets.destdir}}"/etc/clamav/clamd.conf.sample |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here
| "${{targets.destdir}}"/etc/clamav/clamd.conf.sample | |
| "${{targets.destdir}}"/etc/clamav/clamd.conf.sample | |
| sed -i 's/^#TCPSocket.*/TCPSocket 3310/; s/^#TCPAddr localhost/#TCPAddr 0.0.0.0/' "${{targets.destdir}}"/etc/clamav/clamd.conf.sample |
have updated
TCPSocketto enable port 3310 and added default configs forclamav-milter.confmatching upstreamref - https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.5/alpine/Dockerfile#L61-L81