mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-12 03:10:13 +00:00
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user