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