diff options
author | 2012-08-03 16:33:07 -0400 | |
---|---|---|
committer | 2012-08-06 16:56:59 +0200 | |
commit | b0e478986f8b696cc347ed963a6181a56c80f4cd (patch) | |
tree | 7f347d15a42244409148187236b29bec900e6ecd /examples | |
parent | Add -netdev bridge support (diff) | |
download | libvirt-b0e478986f8b696cc347ed963a6181a56c80f4cd.tar.gz libvirt-b0e478986f8b696cc347ed963a6181a56c80f4cd.tar.bz2 libvirt-b0e478986f8b696cc347ed963a6181a56c80f4cd.zip |
apparmor: QEMU bridge helper policy updates
This patch provides AppArmor policy updates for the QEMU bridge helper.
The QEMU bridge helper is a SUID executable exec'd by QEMU that drops
capabilities to CAP_NET_ADMIN and adds a tap device to a network bridge.
Signed-off-by: Richa Marwaha <rmarwah@linux.vnet.ibm.com>
Signed-off-by: Corey Bryant<coreyb@linux.vnet.ibm.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/apparmor/libvirt-qemu | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu index 10cdd36b5..766a334e2 100644 --- a/examples/apparmor/libvirt-qemu +++ b/examples/apparmor/libvirt-qemu @@ -1,4 +1,4 @@ -# Last Modified: Mon Apr 5 15:11:27 2010 +# Last Modified: Fri Mar 9 14:43:22 2012 #include <abstractions/base> #include <abstractions/consoles> @@ -108,3 +108,22 @@ /bin/dash rmix, /bin/dd rmix, /bin/cat rmix, + + /usr/libexec/qemu-bridge-helper Cx, + # child profile for bridge helper process + profile /usr/libexec/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/libexec/qemu-bridge-helper rmix, + } |