[libvirt] [PATCH 8/8] apparmor, libvirt-qemu: Add ppc64el related changes

Guido Günther agx at sigxcpu.org
Fri May 19 07:55:50 UTC 2017


On Thu, May 18, 2017 at 10:53:46AM +0200, Stefan Bader wrote:
> From: Serge Hallyn <serge.hallyn at ubuntu.com>
> 
> Updates profile to allow running on ppc64el.
> 
> Bug-Ubuntu: https://bugs.launchpad.net/bugs/1374554
> 
> Signed-off-by: Christian Ehrhardt <christian.ehrhardt at canonical.com>
> Signed-off-by: Stefan Bader <stefan.bader at canonical.com>
> ---
>  examples/apparmor/libvirt-qemu | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu
> index f04ce04..2791dfc 100644
> --- a/examples/apparmor/libvirt-qemu
> +++ b/examples/apparmor/libvirt-qemu
> @@ -77,6 +77,7 @@
>    /usr/share/OVMF/** r,
>    /usr/share/AAVMF/** r,
>    /usr/share/qemu-efi/** r,
> +  /usr/share/slof/** r,
>  
>    # access PKI infrastructure
>    /etc/pki/libvirt-vnc/** r,
> @@ -102,6 +103,7 @@
>    /usr/bin/qemu-system-or32 rmix,
>    /usr/bin/qemu-system-ppc rmix,
>    /usr/bin/qemu-system-ppc64 rmix,
> +  /usr/bin/qemu-system-ppc64le rmix,
>    /usr/bin/qemu-system-ppcemb rmix,
>    /usr/bin/qemu-system-s390x rmix,
>    /usr/bin/qemu-system-sh4 rmix,
> @@ -158,3 +160,8 @@
>    /etc/udev/udev.conf r,
>    /sys/bus/ r,
>    /sys/class/ r,
> +
> +  # for ppc device-tree access
> +  @{PROC}/device-tree/ r,
> +  @{PROC}/device-tree/** r,
> +  /sys/firmware/devicetree/** r,
> -- 
> 2.7.4

LGTM but I don't know much about PPC64, it's SLOF and where the device
tree should be located.
Cheers,
 -- Guido




More information about the libvir-list mailing list