]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainCreateDevice: Be more careful about device path
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Jan 2017 13:24:16 +0000 (14:24 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Jan 2017 14:36:42 +0000 (15:36 +0100)
commitdd78da09b03a4fb3db69e7405fa177dc39a4936d
tree0bc63b4677b42a09253970bc09536bea4eeba74d
parentce01a2b11ce88da772923ebcbbfe66f228a7bfee
qemuDomainCreateDevice: Be more careful about device path

Again, not something that I'd hit, but there is a chance in
theory that this might bite us. Currently the way we decide
whether or not to create /dev entry for a device is by marching
first four characters of path with "/dev". This might be not
enough. Just imagine somebody has a disk image stored under
"/devil/path/to/disk". We ought to be matching against "/dev/".

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c