]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix apparmor issues for tck
authorMike Latimer <mlatimer@suse.com>
Tue, 20 Jan 2015 01:25:42 +0000 (18:25 -0700)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Fri, 23 Jan 2015 10:12:04 +0000 (11:12 +0100)
The network and nwfilter tests contained in the libvirt-TCK testkit can fail
unless access to raw network packets is granted. Without this access, the
following apparmor error can be seen while running the tests:

  apparmor="DENIED" operation="create" parent=1 profile="/usr/sbin/libvirtd"
  pid=94731 comm="libvirtd" family="packet" sock_type="raw" protocol=768

examples/apparmor/usr.sbin.libvirtd

index 99178366e9158801bd563bf6edb22806377cba1a..4a94fff43696224abbbad18ef54406d59445efec 100644 (file)
@@ -35,6 +35,7 @@
   network inet6 stream,
   network inet6 dgram,
   network packet dgram,
+  network packet raw,
 
   # Very lenient profile for libvirtd since we want to first focus on confining
   # the guests. Guests will have a very restricted profile.