• M
    qemuDomainCreateDevice: Canonicalize paths · cbc45525
    Michal Privoznik 提交于
    So far the decision whether /dev/* entry is created in the qemu
    namespace is really simple: does the path starts with "/dev/"?
    This can be easily fooled by providing path like the following
    (for any considered device like disk, rng, chardev, ..):
    
      /dev/../var/lib/libvirt/images/disk.qcow2
    
    Therefore, before making the decision the path should be
    canonicalized.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    cbc45525
qemu_domain.c 239.0 KB