diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-11-28 16:45:22 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-12-25 11:29:31 -0800 |
commit | 587c92251d7d1665aa2e35ffa062feee886a015f (patch) | |
tree | e6219c0bace11c586e169bc337c86ff191fc4fa7 | |
parent | e740a30c102c372f02f10c54c3c3ea9b650f3907 (diff) | |
download | meta-security-587c92251d7d1665aa2e35ffa062feee886a015f.tar.gz |
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.bb | 8 |
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/* \ | |||
135 | ${datadir}/man/* \ | 135 | ${datadir}/man/* \ |
136 | ${docdir}/* " | 136 | ${docdir}/* " |
137 | 137 | ||
138 | USERADD_PACKAGES = "${PN}" | 138 | USERADD_PACKAGES = "${PN}-freshclam " |
139 | GROUPADD_PARAM:${PN} = "--system ${CLAMAV_UID}" | 139 | GROUPADD_PARAM:${PN}-freshclam = "--system ${CLAMAV_UID}" |
140 | USERADD_PARAM:${PN} = "--system -g ${CLAMAV_GID} --home-dir \ | 140 | USERADD_PARAM:${PN}-freshclam = "--system -g ${CLAMAV_GID} --home-dir \ |
141 | ${localstatedir}/lib/${BPN} \ | 141 | ${localstatedir}/lib/${BPN} \ |
142 | --no-create-home --shell /sbin/nologin ${BPN}" | 142 | --no-create-home --shell /sbin/nologin ${PN}" |
143 | 143 | ||
144 | RPROVIDES:${PN} += "${PN}-systemd" | 144 | RPROVIDES:${PN} += "${PN}-systemd" |
145 | RREPLACES:${PN} += "${PN}-systemd" | 145 | RREPLACES:${PN} += "${PN}-systemd" |