summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2021-09-26 14:25:53 +0200
committerArmin Kuster <akuster808@gmail.com>2021-09-28 16:18:59 -0700
commitea062563aaa5c27fa7fda84b83bb9d0e60870f42 (patch)
tree28e6d13a371d6aa16230679e1b048190dea179d5 /recipes-kernel
parent650e6d6d4bba0b7f6dcf879ba8970925f9fc1412 (diff)
downloadmeta-security-ea062563aaa5c27fa7fda84b83bb9d0e60870f42.tar.gz
clamav: Set clamav:clamav ownership on /var/lib/clamav in do_install
Also, rearrange the runtime-dependencies a little so clamav-freshclam is installed later than clamav. The issue is that clamav-freshclam ships /var/lib/clamav and the main clamav package uses chown in pkg_postinst to set the ownership of this directory. But pkg_postinst is not marked as "ontarget" so this chown only took effect when upgrading or reinstalling the package. So when clamav is part of an OS image out of the box, freshclamd cannot populate this directory since it's running under the clamav user. Fix this by creating /var/lib/clamav with the proper ownership in do_install and rearrange runtime-dependencies, so clamav-freshclam RDEPENDS on clamav and clamav relaxes its runtime-dependency into RRECOMMENDS so clamav-freshclam is installed later than clamav, avoiding these warnings: Installing : clamav-freshclam-... 487/1954 warning: user clamav does not exist - using root warning: group clamav does not exist - using root Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-kernel')
0 files changed, 0 insertions, 0 deletions