mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-31 08:38:16 -05:00
virt-aa-helper: put static rules in quotes
To avoid any issues later on if paths ever change (unlikely but possible) and to match the style of other generated rules the paths of the static rules have to be quoted as well. Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
This commit is contained in:
committed by
Michal Privoznik
parent
e79211ed23
commit
cbd609524d
@@ -1149,11 +1149,11 @@ get_files(vahControl * ctl)
|
||||
}
|
||||
}
|
||||
if (needsvhost)
|
||||
virBufferAddLit(&buf, " /dev/vhost-net rw,\n");
|
||||
virBufferAddLit(&buf, " \"/dev/vhost-net\" rw,\n");
|
||||
|
||||
if (needsVfio) {
|
||||
virBufferAddLit(&buf, " /dev/vfio/vfio rw,\n");
|
||||
virBufferAddLit(&buf, " /dev/vfio/[0-9]* rw,\n");
|
||||
virBufferAddLit(&buf, " \"/dev/vfio/vfio\" rw,\n");
|
||||
virBufferAddLit(&buf, " \"/dev/vfio/[0-9]*\" rw,\n");
|
||||
}
|
||||
|
||||
if (ctl->newfile)
|
||||
|
||||
Reference in New Issue
Block a user