mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
Move user libvirtd socket out of abstract namespace
The current unprivileged user libvirtd sockets are in the abstract namespace. This has a number of problems - You can't connect to them remotely using the nc/ssh tunnel - This is not portable for OS-X, BSD & probably others - Parent directory permissions don't apply
This commit is contained in:
parent
2adda523ea
commit
905be03d20
@ -300,7 +300,7 @@ daemonUnixSocketPaths(struct daemonConfig *config,
|
||||
}
|
||||
umask(old_umask);
|
||||
|
||||
if (virAsprintf(sockfile, "@%s/libvirt-sock", rundir) < 0) {
|
||||
if (virAsprintf(sockfile, "%s/libvirt-sock", rundir) < 0) {
|
||||
VIR_FREE(rundir);
|
||||
goto no_memory;
|
||||
}
|
||||
|
@ -583,7 +583,7 @@ doRemoteOpen (virConnectPtr conn,
|
||||
if (!userdir)
|
||||
goto failed;
|
||||
|
||||
if (virAsprintf(&sockname, "@%s/" LIBVIRTD_USER_UNIX_SOCKET, userdir) < 0) {
|
||||
if (virAsprintf(&sockname, "%s/" LIBVIRTD_USER_UNIX_SOCKET, userdir) < 0) {
|
||||
VIR_FREE(userdir);
|
||||
goto out_of_memory;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user