]> xenbits.xensource.com Git - libvirt.git/commitdiff
apparmor: fix virt-aa-helper profile
authorCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 2 Jan 2018 08:54:46 +0000 (09:54 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 3 Jan 2018 16:33:28 +0000 (17:33 +0100)
Fix rule introduced by commit 0f33025a:
  * to handle /var/run not being a symlink to /run
  * to be properly parsed: missing comma at the end.

examples/apparmor/usr.lib.libvirt.virt-aa-helper

index 9c822b644e6a08d87161460f1ad8d0a314f65851..105f09e43d5fde06c17ea6fb325e77b6fbd49cfa 100644 (file)
@@ -51,7 +51,7 @@ profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper {
   /var/lib/libvirt/images/** r,
   /{media,mnt,opt,srv}/** r,
   # For virt-sandbox
-  /run/libvirt/**/[sv]d[a-z] r
+  /{,var/}run/libvirt/**/[sv]d[a-z] r,
 
   /**.img r,
   /**.raw r,