[MacPorts] #70558: clamav should notify user when a file has been quarantined, esp. for on-access scan
MacPorts
noreply at macports.org
Thu Aug 15 11:46:30 UTC 2024
#70558: clamav should notify user when a file has been quarantined, esp. for on-
access scan
----------------------------+-----------------------
Reporter: bernstei | Owner: essandess
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: clamav-server |
----------------------------+-----------------------
Comment (by essandess):
The port {{{clamav-server}}} (which is simply a configuration and command
wrapper for the {{{clamav}}} port) is configured so that quarantined files
for both scheduled and on-access scans are reported in the {{{clamav}}}
log files.
User notifications for on-demand scans ''do'' exist using the
{{{osascript}}} command (link to code below).
I agree that it would be great to have user notifications, but I’ve never
investigated a good macOS way to accomplish this from a shell script
running as root under a launchctl daemon. The {{{osascript}}} approach
sort-of works, but I suspect isn’t necessarily robust.
If someone can recommend a decent (and tested) bash-based approach to
produce macOS notifications from root to all users it would be
straightforward to add these to the bash code that’s already used to drive
{{{clamav-server}}}.
https://github.com/macports/macports-
ports/blob/d1737e7fd5d65a58cb28c2d877cfb2bee95166f5/sysutils/clamav-
server/files/ClamavScanIt.sh#L75
--
Ticket URL: <https://trac.macports.org/ticket/70558#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list