mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
clamav: make install owner match the added user name
USERADD_PARAM:${PN}-freshclam = "--system -g ${CLAMAV_GID} --home-dir \
${localstatedir}/lib/${BPN} \
--no-create-home --shell /sbin/nologin ${PN}"
The username added to the passwd file is ${PN}. When ${PN} is
multilibized, it no longer matches CLAMAV_UID. Make the two match.
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
c1c80cf0c0
commit
a0d7194b21
@@ -56,7 +56,7 @@ export OECMAKE_C_FLAGS += " -I${STAGING_INCDIR} -L ${RECIPE_SYSROOT}${nonarch_li
|
||||
|
||||
do_install:append () {
|
||||
install -d ${D}/${sysconfdir}
|
||||
install -d -o ${CLAMAV_UID} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav
|
||||
install -d -o ${PN} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav
|
||||
install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles
|
||||
|
||||
install -m 644 ${WORKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir}
|
||||
|
||||
Reference in New Issue
Block a user