[clamav-users] create /var/run/clamav on reboot in Fedora, otherwise Pulseaudio errors occur

Kris Deugau kdeugau at vianet.ca
Wed Aug 5 19:24:49 UTC 2020


Robert Kudyba wrote:
> Using Fedora 31, this has been happening for quite a while. After reboot 
> /var/run/clamav is removed, which is expected. However, wehn ClamAV was 
> installed the user created in /etc/passwd looks like this:
> clamav:x:985:981::/var/run/clamav:/sbin/nologin
> 
> So Pulseaudio tries to create the following directories/files:

In my opinion the bug lies in PulseAudio in doing whatever it's doing 
that needs to create files in the clamav user's home directory at all. 
ClamAV itself has no audio components that I know of (it might be 
generally "aware" of audio file types, if there are viruses that abuse 
them), so PulseAudio should not be doing anything in the clamav user's 
home directory.  (Or any other similar system user's home directory, for 
that matter.)

Creating /var/run/clamav earlier in the boot process - by whatever means 
- just papers over the real problem of some process accessing something 
it shouldn't be touching in the first place.  Not to mention the fact 
that ~/.config is the "Latest and Most Bestest(TM)" place for various 
tools to file their per-user configuration files;  it's supposed to be 
persistent, which /var/run/clamav very intentionally isn't.

-kgd




More information about the clamav-users mailing list