Good evening everyone,
I installed clamav with all its packages complete with clamd-daemon. I set scan.conf but I don’t receive the virus-event notification which integrates the following commands:
/etc/clamd.d/virus-event.bash
#!/bin/bash
PATH=/usr/bin
ALERT="Signature detected by clamav: $CLAM_VIRUSEVENT_VIRUSNAME in $CLAM_VIRUSEVENT_FILENAME"
# Send an alert to all graphical users.
for ADDRESS in /run/user/*; do
USERID=${ADDRESS#/run/user/}
/usr/bin/sudo -u "#$USERID" DBUS_SESSION_BUS_ADDRESS="unix:path=$ADDRESS/bus" PATH=${PATH} \
/usr/bin/notify-send -i dialog-warning "Virus found!" "$ALERT"
done
I set setenforce 0 but nothing changes, notifications do not arrive in case of malware download.
How can I solve it?