Open goshansp opened 3 years ago
this issue does persist after fixing #184 but no reproduction steps have been found. it happens rarely on local infra and is more frequent on shared (cloud) systems. it's more frequent on small 1-cpu systems and can me mitigated by not including /var
. on larger systems with plenty of cpu it seems to become less common. also on a idle system it happens rarely but after hammering it happens again more frequent. a major mitigation step is adding ExecStartPre=/bin/sleep 32
or higher to clamonacc.service
... any hints pointing to reproduction on preventing clamonacc
to initialize all includes appreciated!
@goshansp I've had this issue too, but since i've changed the systemd unit file for clamonacc to
Type=forking
and removed the -F
or --foreground
flag from the ExecStart
line the issue hasn't occured anymore.
Maybe the cause is a bad interaction between clamonacc and systemd and the way the latter handles the standard FDs?
@frank-fegert, I tried your suggestion, but unfortunately I still experience the same issue with v0.105.0. After every boot, it drops my /tmp
folder with ERROR: ClamInotif: could not watch path '/tmp', No such file or directory
issue
clamonacc
from packaged rpm 103.2 up to 104/dev under load (i.e. when beeing deployed by ansible) during start fails toOnAccessIncludePath
existing directory claiming it does not exist. this failure is not detected as the process doesn't terminate. this bug is possibly causing clamav on-access to not perform under any Linux for < 5.1 kernel.next steps / brainstorming / todo
clamonacc fatal error
https://github.com/Cisco-Talos/clamav/issues/184proposed fixes to clamonacc
clamonacc
uponERROR: ClamInotif: could not watch path '/home', No such file or directory
observations
systemctl restart clamav-clamonacc.service
will succeed 100% watch /home (cannot reproduce)molecule verify
will only work ~ 2 out of 11 times when /usr is watched/usr
is not watched we pass eicar test reliably (much less fileio)symptomes
/etc/clamd.d/clamd.conf
/etc/systemd/system/clamav-clamonacc.service
Please let me know if there is anything to be tested.