From 25a52a58a7e6e682e5c86707d77420f06535d859 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Mon, 2 Sep 2024 08:14:03 +0200 Subject: libvirt: dont set polkit permissions manually According to this commit polkit rules should go to ${datadir} instead of ${sysconfdir}: https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=d5e90541f8e35916abc930b2da6de037b23d51a1 Theres no need to adjust the permissions for ${datadir} anymore: https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=6da0fd21c900e32a0693a6b27d38182f19c8c76c This commit fixes build after: https://git.yoctoproject.org/poky/commit/?id=ef9a927a3af1dd817fe298bbe45470b738d9ce2f Signed-off-by: Markus Volk Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_git.bb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb index 229ffdbb..143a8b58 100644 --- a/recipes-extended/libvirt/libvirt_git.bb +++ b/recipes-extended/libvirt/libvirt_git.bb @@ -245,15 +245,6 @@ do_install:append() { echo "d root root 0755 /run/libvirt/qemu none" \ >> ${D}${sysconfdir}/default/volatiles/99_libvirt - # Manually set permissions and ownership to match polkit recipe - if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then - install -d -m 0700 ${D}/${datadir}/polkit-1/rules.d - chown polkitd ${D}/${datadir}/polkit-1/rules.d - chgrp root ${D}/${datadir}/polkit-1/rules.d - else - rm -rf ${D}/${datadir}/polkit-1 - fi - # disable seccomp_sandbox if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ -- cgit v1.2.3-54-g00ecf