]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-aa-helper: /etc/libvirt-sandbox/services isn't restricted
authorCédric Bosdonnat <cbosdonnat@suse.com>
Thu, 20 Nov 2014 10:32:38 +0000 (11:32 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 25 Nov 2014 10:40:55 +0000 (11:40 +0100)
To get virt-sandbox-service working with AppArmor, virt-aa-helper
needs not to choke on path in /etc/libvirt-sandbox/services.

src/security/virt-aa-helper.c

index 81f9f4063155630e07512ed483937a38c3547dc8..f273e09dacb23423c45b5e8e73ac164fb9c26df2 100644 (file)
@@ -571,7 +571,8 @@ valid_path(const char *path, const bool readonly)
     };
     /* override the above with these */
     const char * const override[] = {
-        "/sys/devices/pci"     /* for hostdev pci devices */
+        "/sys/devices/pci",    /* for hostdev pci devices */
+        "/etc/libvirt-sandbox/services/" /* for virt-sandbox service config */
     };
 
     if (path == NULL) {