[libvirt] [PATCH 03/12] apparmor, libvirt-qemu: Allow read access to sysfs system info

intrigeri intrigeri+libvirt at boum.org
Wed Dec 20 09:35:06 UTC 2017


Hi,

Christian Ehrhardt:
> diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu
> index 651d841..b9e45bd 100644
> --- a/examples/apparmor/libvirt-qemu
> +++ b/examples/apparmor/libvirt-qemu
> @@ -34,6 +34,10 @@
>    owner @{PROC}/@{pid}/task/@{tid}/comm rw,
>    @{PROC}/sys/kernel/cap_last_cap r,

> +  /sys/devices/system/node/ r,
> +  /sys/devices/system/node/node[0-9]*/meminfo r,
> +  /sys/devices/system/cpu/ r,
> +
>    # For hostdev access. The actual devices will be added dynamically
>    /sys/bus/usb/devices/ r,
>    /sys/devices/**/usb[0-9]*/** r,

I think I've already upstream'ed this 4 months ago: commit
e7f5d627f93c1c71260d2a795a1227b16b0d3186.

Maybe rebase your patch series on top of the current upstream
master branch? :)

Cheers,
-- 
intrigeri




More information about the libvir-list mailing list