virt-aa-helper: /etc/libvirt-sandbox/services isn't restricted

To get virt-sandbox-service working with AppArmor, virt-aa-helper
needs not to choke on path in /etc/libvirt-sandbox/services.
This commit is contained in:
Cédric Bosdonnat 2014-11-20 11:32:38 +01:00
parent 22221233d0
commit c264eeaa38

View 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) {