]> git.proxmox.com Git - pve-installer.git/commit
installation: disable clamav-clamonacc.service by default for PMG
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Jun 2023 16:34:16 +0000 (18:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Jun 2023 16:36:21 +0000 (18:36 +0200)
commitbf9e79b7eafa896d54452eeedc3cf067b3283d9e
treefd56bd85328f529fc784d808095d1c4d83aee5ca
parentaac8082fe44a48689d07b89419eb5e9b49e27a99
installation: disable clamav-clamonacc.service by default for PMG

> On-Access [...] leverages a kernel api called fanotify to block
> processes from attempting to access malicious files. This
> prevention occurs in kernel-space, and thus offers stronger
> protection than a purely user-space solution.

This is not really useful for the PMG use case and requires user
configuration as otherwise it refuses to start. In fact, is the sole
unit marked as failed after a fresh installation:

> ERROR: Clamonacc: at least one of OnAccessExcludeUID,
> OnAccessExcludeUname, or OnAccessExcludeRootUID must be specified
> it is recommended you exclude the clamd instance UID or uname to
> prevent infinite event scanning loops.

So disable it by default, if a user really wants this, whyever that
would be, the can just configure it and enable it again via
systemctl.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Install.pm