mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
@@ -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" \
|
||||
1
app-antivirus/clamav/files/tmpfiles.d/clamav-r1.conf
Normal file
1
app-antivirus/clamav/files/tmpfiles.d/clamav-r1.conf
Normal file
@@ -0,0 +1 @@
|
||||
d /run/clamav 0755 clamav clamav
|
||||
Reference in New Issue
Block a user