<div dir="ltr"><div><div><div><div><div>Hello,<br></div>     The Oz automated install program (<a href="http://github.com/clalancette/oz">http://github.com/clalancette/oz</a>) uses a serial device inside a guest to communicate the guest IP address to a listener on the host; once the host has the IP address, other customization steps can take place.<br>
</div>     This serial device in the guest is currently backed by a TCP socket on the host.  I use the following libvirt XML snippet to set this up:<br><br><serial type="tcp"><br>  <source mode="bind" host="127.0.0.1" service="9412"/><br>
  <protocol type="raw"/><br>  <target port="1"/><br></serial><br><br></div>DanB points out that this is probably insecure, and we should use named pipes or Unix domain sockets instead.  I was able to implement Unix domain sockets with a few minor changes to Oz, but I'm running into a permissions problem.<br>
</div>    Essentially, the problem is that when you run Oz as a regular, non-root user, there is no convenient place on the filesystem where both the qemu user can read and write the socket, and where the user that is running Oz can read the socket.  I've tried using /var/lib/libvirt/qemu/*.port, but that directory is 0650, so the regular user has no permission to it.  Similarly, the qemu user may not have permission to read the users home directory, so I can't really put it there either.<br>
</div>    Does anyone have any ideas of what I might do here?  I'm open to changing to any of Unix domain sockets, pipes, UDP sockets, or whatever, but it has to work for both root and non-root users.<br><br>Thanks in advance,<br>
Chris<br></div>