[clamav-users] ClamAV 0.103.0 release candidate - systemd service start fails

Andy Ragusa (aragusa) aragusa at cisco.com
Fri Aug 21 20:16:23 UTC 2020


I have reproduced this error, and am currently working on a fix.  See https://bugzilla.clamav.net/show_bug.cgi?id=12597.

We made a change to create PID files before dropping privileges so that an unprivileged user cannot change the PID file and have the service manager kill the wrong process.

Since there are still conditions that could cause the child process initialization to fail, the parent process waits for a signal that the child process is initialized to exit, so that it can report an accurate exit status.  When the child drops privileges, it is not able to send SIGINT to the parent.  I am currently working on a patch to have the parent drop privileges so that it can be signaled by the child.

Thanks,
Andy



________________________________

From: clamav-users <clamav-users-bounces at lists.clamav.net> on behalf of Michael Orlitzky via clamav-users <clamav-users at lists.clamav.net>
Sent: Friday, August 21, 2020 12:20 PM
To: clamav-users at lists.clamav.net <clamav-users at lists.clamav.net>
Cc: Michael Orlitzky <michael at orlitzky.com>
Subject: Re: [clamav-users] ClamAV 0.103.0 release candidate - systemd service start fails

On 2020-08-21 11:29, Arjen de Korte via clamav-users wrote:
>
>>   # ps ax | grep clamd
>>   7436 ?        Ssl    0:25 sbin/clamd
>
>      # ps ax | grep clamd
>      7840 pts/2    S+     0:00 /usr/sbin/clamd --debug
>      7841 ?        Ssl    0:38 /usr/sbin/clamd --debug
>
> Previously I've waited for more than an hour, no change. The process
> running under root never exits.
>

Ok, I can confirm this! After setting

  User clamav

in clamd.conf, I've seen the root process get stuck as well. That's not
an intended effect of the PID file change.


_______________________________________________

clamav-users mailing list
clamav-users at lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20200821/55ca22ea/attachment.htm>


More information about the clamav-users mailing list