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:
Christian Ehrhardt 2017-09-20 16:59:09 +02:00 committed by Michal Privoznik
parent e79211ed23
commit cbd609524d

View File

@ -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)