mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00: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:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user