2011/5/29 Richard Laager <rlaager(a)wiktel.com>:
On Sun, 2011-05-29 at 12:34 +0200, Matthias Bolte wrote:
> > So I tried building libvirt on Solaris 11 Express. The following
> > outlines the trouble (and successes) I've had so far.
>
> I assume your building from up-to-date git here?
I was using 0.9.1. I should switch to git.
> '(a)//.libvirt/libvirt-sock' should actually look like this
> '(a)/home/<username>/.libvirt/libvirt-sock' as you're running
libvirtd
> as non-root it tries to open a UNIX socket in the home directory of
> the user starting it. This path is build via this pattern:
>
> @<home-directory>/.libvirt/libvirt-sock
I was actually running it as root.
Richard
That's even stranger. libvirtd uses geteuid() == 0 to detect if it's
running as root and acts upon that. It only tries to open a UNIX
socket in the user's home (what it does in your case) when it detects
non-root execution. Something is wrong here, but I've no clue what.
Matthias