提交 c264eeaa 编写于 作者: C Cédric Bosdonnat

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.
上级 22221233
...@@ -571,7 +571,8 @@ valid_path(const char *path, const bool readonly) ...@@ -571,7 +571,8 @@ valid_path(const char *path, const bool readonly)
}; };
/* override the above with these */ /* override the above with these */
const char * const override[] = { 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) { if (path == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册