]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apparmor: move qemu-bridge-helper to libvirtd profile
authorCédric Bosdonnat <cbosdonnat@suse.com>
Fri, 5 Aug 2016 07:32:54 +0000 (09:32 +0200)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Mon, 26 Sep 2016 11:23:01 +0000 (13:23 +0200)
qemu-bridge-helper is only called from libvirtd, it has to be moved
from the qemu domain abstraction to the usr.sbin.libvirtd profile.

examples/apparmor/libvirt-qemu
examples/apparmor/usr.sbin.libvirtd

index efb4873e773d22a5d1cd74d310318b68f1452a8f..11381d4df0fdbd7167d3959bdf1ed97360b65e25 100644 (file)
   /etc/udev/udev.conf r,
   /sys/bus/ r,
   /sys/class/ r,
-
-  /usr/{lib,libexec}/qemu-bridge-helper Cx -> qemu_bridge_helper,
-  # child profile for bridge helper process
-  profile qemu_bridge_helper {
-   #include <abstractions/base>
-
-   capability setuid,
-   capability setgid,
-   capability setpcap,
-   capability net_admin,
-
-   network inet stream,
-
-   /dev/net/tun rw,
-   /etc/qemu/** r,
-   owner @{PROC}/*/status r,
-
-   /usr/{lib,libexec}/qemu-bridge-helper rmix,
-  }
index 23f70f5797aec6a1348e133306c4acc282181def..48651b28f36d89986c11a9d24d15cb8df66b5b87 100644 (file)
   # allow changing to our UUID-based named profiles
   change_profile -> @{LIBVIRT}-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*,
 
+  /usr/{lib,libexec}/qemu-bridge-helper Cx -> qemu_bridge_helper,
+  # child profile for bridge helper process
+  profile qemu_bridge_helper {
+   #include <abstractions/base>
+
+   capability setuid,
+   capability setgid,
+   capability setpcap,
+   capability net_admin,
+
+   network inet stream,
+
+   /dev/net/tun rw,
+   /etc/qemu/** r,
+   owner @{PROC}/*/status r,
+
+   /usr/{lib,libexec}/qemu-bridge-helper rmix,
+  }
 }