mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 21:38:15 +00:00
Invalid path to libvirt_leaseshelper in usr.sbin.dnsmasq
The error: type=AVC msg=audit(1585403559.846:34317577): apparmor="DENIED" operation="exec" profile="/usr/sbin/dnsmasq" name="/usr/libexec/libvirt_leaseshelper" pid=7162 comm="sh" requested_mas k="x" denied_mask="x" fsuid=0 ouid=0 type=AVC msg=audit(1585403559.846:34317578): apparmor="DENIED" operation="open" profile="/usr/sbin/dnsmasq" name="/usr/libexec/libvirt_leaseshelper" pid=7162 comm="sh" requested_mas k="r" denied_mask="r" fsuid=0 ouid=0 Looks like the path to libvirt_leasehelper is incorrect usr.sbin.dnsmasq, at least in gentoo. Patching the file fixes the problem: issue: https://gitlab.com/apparmor/apparmor/-/issues/87 Signed-off-by: John Johansen <john.johansen@canonical.com> (cherry picked from commit 28fce5f76d43bda3be66449a2439cd56bea80fba)
This commit is contained in:
parent
02dce59d29
commit
af6bf82389
@ -89,6 +89,7 @@ profile /usr/sbin/dnsmasq /usr/{bin,sbin}/dnsmasq flags=(attach_disconnected) {
|
|||||||
|
|
||||||
# libvirt lease helper
|
# libvirt lease helper
|
||||||
/usr/lib{,64}/libvirt/libvirt_leaseshelper Cx -> libvirt_leaseshelper,
|
/usr/lib{,64}/libvirt/libvirt_leaseshelper Cx -> libvirt_leaseshelper,
|
||||||
|
/usr/libexec/libvirt_leaseshelper Cx -> libvirt_leaseshelper,
|
||||||
|
|
||||||
# lxc-net pid and lease files
|
# lxc-net pid and lease files
|
||||||
/{,var/}run/lxc/dnsmasq.pid rw,
|
/{,var/}run/lxc/dnsmasq.pid rw,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user