From 587c92251d7d1665aa2e35ffa062feee886a015f Mon Sep 17 00:00:00 2001 From: Armin Kuster Date: Sun, 28 Nov 2021 16:45:22 -0800 Subject: clamav: fix useradd warning WARNING: security-build-image-1.0-r0 do_rootfs: [log_check] security-build-image: found 2 warning messages in the logfile: [log_check] warning: user clamav does not exist - using root [log_check] warning: group clamav does not exist - using root clamav-freshclam is the package needing to have its user/group set. Signed-off-by: Armin Kuster --- recipes-scanners/clamav/clamav_0.104.0.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-scanners/clamav/clamav_0.104.0.bb b/recipes-scanners/clamav/clamav_0.104.0.bb index e59f5ff..f0889de 100644 --- a/recipes-scanners/clamav/clamav_0.104.0.bb +++ b/recipes-scanners/clamav/clamav_0.104.0.bb @@ -135,11 +135,11 @@ FILES:${PN}-doc = "${mandir}/man/* \ ${datadir}/man/* \ ${docdir}/* " -USERADD_PACKAGES = "${PN}" -GROUPADD_PARAM:${PN} = "--system ${CLAMAV_UID}" -USERADD_PARAM:${PN} = "--system -g ${CLAMAV_GID} --home-dir \ +USERADD_PACKAGES = "${PN}-freshclam " +GROUPADD_PARAM:${PN}-freshclam = "--system ${CLAMAV_UID}" +USERADD_PARAM:${PN}-freshclam = "--system -g ${CLAMAV_GID} --home-dir \ ${localstatedir}/lib/${BPN} \ - --no-create-home --shell /sbin/nologin ${BPN}" + --no-create-home --shell /sbin/nologin ${PN}" RPROVIDES:${PN} += "${PN}-systemd" RREPLACES:${PN} += "${PN}-systemd" -- cgit