Extended Testcase for existing and non-existing Files as well as non
existing paths (can't be dereferenced).
<domain type='kvm'>
<name>symlink-test</name>
<uuid>deadbeef-dead-beef-dead-beefdeadbeef</uuid>
<memory unit='KiB'>1048576</memory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/run/symlinkdisk-doesexist'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/run/symlinkdisk-doesnotexist'/>
<target dev='hdb' bus='ide'/>
</disk>
<interface type='vhostuser'>
<model type='virtio'/>
<source type='unix' path='/var/run/symlinknet-doesexist'
mode='server'/>
</interface>
<interface type='vhostuser'>
<model type='virtio'/>
<source type='unix' path='/var/run/symlinknet-doesnotexist'
mode='server'/>
</interface>
<channel type='unix'>
<source mode='bind' path='/var/run/symlinksocket-doesexist'/>
<target type='virtio' name='org.qemu.guest_agent.1'/>
</channel>
<channel type='unix'>
<source mode='bind' path='/var/run/symlinksocket-doesnotexist'/>
<target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>
<channel type='unix'>
<source mode='bind' path='/var/run/pathdoesnotexist/symlinksocket'/>
<target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>
</devices>
</domain>
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1752361
Title:
virt-aa-helper should resolve symlinks and use only resolved paths
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1752361/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs