9d8a1a2b86
- apparmor: add rules for new mediation features apparmor-rules-for-new-mediation-features.patch, apparmor-fine-grained-mount-rules.patch bsc#1066124, boo#1065123 - spec: unconditionally enable the wireshark dissector OBS-URL: https://build.opensuse.org/request/show/540060 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=636
36 lines
1.6 KiB
Diff
36 lines
1.6 KiB
Diff
commit 97853972e6e5a92b56e1ec0841aa27043ac1301b
|
|
Author: intrigeri <intrigeri+libvirt@boum.org>
|
|
Date: Sun Nov 5 15:29:58 2017 +0000
|
|
|
|
AppArmor: use fine-grained mount rules instead of a blanket catch-all one
|
|
|
|
This set of rules was proposed by Christian Boltz <apparmor@cboltz.de>
|
|
on https://bugzilla.opensuse.org/show_bug.cgi?id=1065123.
|
|
|
|
Index: libvirt-3.9.0/examples/apparmor/usr.sbin.libvirtd
|
|
===================================================================
|
|
--- libvirt-3.9.0.orig/examples/apparmor/usr.sbin.libvirtd
|
|
+++ libvirt-3.9.0/examples/apparmor/usr.sbin.libvirtd
|
|
@@ -30,7 +30,20 @@
|
|
# Needed for vfio
|
|
capability sys_resource,
|
|
|
|
- mount,
|
|
+ mount options=(rw,rslave) -> /,
|
|
+ mount options=(rw, nosuid) -> /{var/,}run/libvirt/qemu/*.dev/,
|
|
+
|
|
+ mount options=(rw, move) /dev/ -> /{var/,}run/libvirt/qemu/*.dev/,
|
|
+ mount options=(rw, move) /dev/hugepages/ -> /{var/,}run/libvirt/qemu/*.hugepages/,
|
|
+ mount options=(rw, move) /dev/mqueue/ -> /{var/,}run/libvirt/qemu/*.mqueue/,
|
|
+ mount options=(rw, move) /dev/pts/ -> /{var/,}run/libvirt/qemu/*.pts/,
|
|
+ mount options=(rw, move) /dev/shm/ -> /{var/,}run/libvirt/qemu/*.shm/,
|
|
+
|
|
+ mount options=(rw, move) /{var/,}run/libvirt/qemu/*.dev/ -> /dev/,
|
|
+ mount options=(rw, move) /{var/,}run/libvirt/qemu/*.hugepages/ -> /dev/hugepages/,
|
|
+ mount options=(rw, move) /{var/,}run/libvirt/qemu/*.mqueue/ -> /dev/mqueue/,
|
|
+ mount options=(rw, move) /{var/,}run/libvirt/qemu/*.pts/ -> /dev/pts/,
|
|
+ mount options=(rw, move) /{var/,}run/libvirt/qemu/*.shm/ -> /dev/shm/,
|
|
|
|
network inet stream,
|
|
network inet dgram,
|