aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-11-28 16:45:22 -0800
committerArmin Kuster <akuster808@gmail.com>2021-12-25 11:29:31 -0800
commit587c92251d7d1665aa2e35ffa062feee886a015f (patch)
treee6219c0bace11c586e169bc337c86ff191fc4fa7
parente740a30c102c372f02f10c54c3c3ea9b650f3907 (diff)
downloadmeta-security-587c92251d7d1665aa2e35ffa062feee886a015f.tar.gz
meta-security-587c92251d7d1665aa2e35ffa062feee886a015f.tar.bz2
meta-security-587c92251d7d1665aa2e35ffa062feee886a015f.zip
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 <akuster808@gmail.com>
-rw-r--r--recipes-scanners/clamav/clamav_0.104.0.bb8
1 files 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"