Re: Mystery of qemu being unable to open NBD Unix domain socket in current directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 07, 2018 at 01:38:47PM +0200, Peter Krempa wrote:
> On Thu, Jun 07, 2018 at 12:20:16 +0100, Richard W.M. Jones wrote:
> > 
> > I don't know whether or not we decided this was a bug, but
> > I have filed one anyway:
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=1588447
> 
> Your XML does not conform to the libvirt domain XML schema which always
> called for an absolute path as we do with all paths in the domain XML:
> 
>         <group>
>           <attribute name="transport">
>             <value>unix</value>
>           </attribute>
>           <attribute name="socket">
>             <ref name="absFilePath"/>
>           </attribute>
>         </group>
> 
> 
> We just did not validate this particular code path in the parser itself
> (when the domain schema validation is not used).

Sure.  Libvirt does need to validate the paths because it's possible
that the *wrong* path will be opened if a relative path is used,
eg. if a socket with the same name happens to exist in "/" (or
whatever is the working directory that libvirt changes to).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux