app-antivirus/clamav: fix LTS socket permissions under systemd

Bug: https://bugs.gentoo.org/921617
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2024-01-15 20:14:32 -05:00
parent 6992fd5962
commit 873ea574ea
2 changed files with 5 additions and 7 deletions

View File

@@ -121,13 +121,10 @@ src_install() {
if ! use libclamav-only ; then
if use systemd; then
# The tmpfiles entry is behind USE=systemd because the
# upstream OpenRC service files should (and do) ensure that
# the directories they need exist and have the correct
# permissions without the help of opentmpfiles. There are
# years-old root exploits in opentmpfiles, the design is
# fundamentally flawed, and the maintainer is not up to
# the task of fixing it.
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
# OpenRC service scripts should (and do) ensure that the
# directories they need exist and have the correct
# permissions without the help of tmpfiles.
newtmpfiles "${FILESDIR}/tmpfiles.d/clamav-r1.conf" clamav.conf
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
systemd_dounit "${FILESDIR}/clamd.service"
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \

View File

@@ -0,0 +1 @@
d /run/clamav 0755 clamav clamav