diff options
author | Jeremy A. Puhlman <jpuhlman@mvista.com> | 2022-06-30 09:30:54 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-07-05 19:26:50 -0400 |
commit | a0d7194b215e89753541bb289d8160a591dae02a (patch) | |
tree | 95d16804c6c5623f7245fe0a8711e4e55a3418e4 | |
parent | c1c80cf0c0f26215fb252242f0d70f8870916734 (diff) | |
download | meta-security-a0d7194b215e89753541bb289d8160a591dae02a.tar.gz |
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>
-rw-r--r-- | recipes-scanners/clamav/clamav_0.104.0.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-scanners/clamav/clamav_0.104.0.bb b/recipes-scanners/clamav/clamav_0.104.0.bb index 3bcb5eb..18e8329 100644 --- a/recipes-scanners/clamav/clamav_0.104.0.bb +++ b/recipes-scanners/clamav/clamav_0.104.0.bb | |||
@@ -56,7 +56,7 @@ export OECMAKE_C_FLAGS += " -I${STAGING_INCDIR} -L ${RECIPE_SYSROOT}${nonarch_li | |||
56 | 56 | ||
57 | do_install:append () { | 57 | do_install:append () { |
58 | install -d ${D}/${sysconfdir} | 58 | install -d ${D}/${sysconfdir} |
59 | install -d -o ${CLAMAV_UID} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav | 59 | install -d -o ${PN} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav |
60 | install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles | 60 | install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles |
61 | 61 | ||
62 | install -m 644 ${WORKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir} | 62 | install -m 644 ${WORKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir} |