FS#68289 - [libvirt] libvirt_leaseshelper install location has changed
Attached to Project:
Community Packages
Opened by singe infini (singeinfini) - Friday, 16 October 2020, 23:00 GMT
Last edited by freswa (frederik) - Saturday, 17 October 2020, 16:39 GMT
Opened by singe infini (singeinfini) - Friday, 16 October 2020, 23:00 GMT
Last edited by freswa (frederik) - Saturday, 17 October 2020, 16:39 GMT
|
Details
Description:
The installation path for libvirt_leaseshelper was changed in version 6.8.0.1 Previously: $ bsdtar -tf /var/cache/pacman/pkg/libvirt-6.5.0-2-x86_64.pkg.tar.zst | grep lease usr/lib/libvirt/libvirt_leaseshelper Now: $ bsdtar -tf /var/cache/pacman/pkg/libvirt-6.8.0-1-x86_64.pkg.tar.zst | grep lease usr/lib/libvirt_leaseshelper But the AppArmor profile for dnsmasq (/etc/apparmor.d/dnsmasq) refers to /usr/lib/libvirt/libvirt_leaseshelper. Consequently, the following error message may be observed at network startup: libvirtd[2473]: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-scrip t=/usr/lib/libvirt_leaseshelper) unexpected exit status 3: sh: /usr/lib/libvirt_leaseshelper: Permission denied dnsmasq: cannot run lease-init script /usr/lib/libvirt _leaseshelper: Permission denied Here is a workaround: /etc/apparmor.d/usr.sbin.dnsmasq 89c89 < /usr/lib{,64}/libvirt/libvirt_leaseshelper Cx -> libvirt_leaseshelper, --- > /usr/lib{,64}/{libvirt/,}libvirt_leaseshelper Cx -> libvirt_leaseshelper, 117c117 < /usr/lib{,64}/libvirt/libvirt_leaseshelper m, --- > /usr/lib{,64}/{libvirt/,}libvirt_leaseshelper m, |
This task depends upon
Closed by freswa (frederik)
Saturday, 17 October 2020, 16:39 GMT
Reason for closing: Fixed
Additional comments about closing: libvirt-6.8.0-2
Saturday, 17 October 2020, 16:39 GMT
Reason for closing: Fixed
Additional comments about closing: libvirt-6.8.0-2
The correct place to fix this is apparmor's upstream:
https://gitlab.com/apparmor/apparmor/-/blob/master/profiles/apparmor.d/usr.sbin.dnsmasq#L117