diff options
author | Markus Volk <f_l_k@t-online.de> | 2024-09-02 08:14:03 +0200 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-09-03 02:09:16 +0000 |
commit | 25a52a58a7e6e682e5c86707d77420f06535d859 (patch) | |
tree | 3b7443521a26d5ae2a322f602c6e91a782adf6a3 | |
parent | a61bc5c79d5d0e6ffe505e2740a31fe5291f2212 (diff) | |
download | meta-virtualization-25a52a58a7e6e682e5c86707d77420f06535d859.tar.gz |
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 <f_l_k@t-online.de>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/libvirt/libvirt_git.bb | 9 |
1 files changed, 0 insertions, 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() { | |||
245 | echo "d root root 0755 /run/libvirt/qemu none" \ | 245 | echo "d root root 0755 /run/libvirt/qemu none" \ |
246 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt | 246 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt |
247 | 247 | ||
248 | # Manually set permissions and ownership to match polkit recipe | ||
249 | if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then | ||
250 | install -d -m 0700 ${D}/${datadir}/polkit-1/rules.d | ||
251 | chown polkitd ${D}/${datadir}/polkit-1/rules.d | ||
252 | chgrp root ${D}/${datadir}/polkit-1/rules.d | ||
253 | else | ||
254 | rm -rf ${D}/${datadir}/polkit-1 | ||
255 | fi | ||
256 | |||
257 | # disable seccomp_sandbox | 248 | # disable seccomp_sandbox |
258 | if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then | 249 | if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then |
259 | sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ | 250 | sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ |