mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Use global directory as UML's monitorDir for privileged connections
For privileged UML connections (uml:///system), we shouldn't use root's home dir, but rather somewhere in /var/run/libvirt/uml-guest. https://bugzilla.redhat.com/show_bug.cgi?id=499536 Signed-off-by: Soren Hansen <soren@linux2go.dk>
This commit is contained in:
parent
0a58eed3d9
commit
9c4f62ae61
@ -373,6 +373,10 @@ umlStartup(int privileged) {
|
||||
|
||||
if ((base = strdup (SYSCONF_DIR "/libvirt")) == NULL)
|
||||
goto out_of_memory;
|
||||
|
||||
if (virAsprintf(¨_driver->monitorDir,
|
||||
"%s/run/libvirt/uml-guest", LOCAL_STATE_DIR) == -1)
|
||||
goto out_of_memory;
|
||||
} else {
|
||||
|
||||
if (virAsprintf(¨_driver->logDir,
|
||||
@ -381,11 +385,11 @@ umlStartup(int privileged) {
|
||||
|
||||
if (virAsprintf(&base, "%s/.libvirt", userdir) == -1)
|
||||
goto out_of_memory;
|
||||
}
|
||||
|
||||
if (virAsprintf(¨_driver->monitorDir,
|
||||
"%s/.uml", userdir) == -1)
|
||||
goto out_of_memory;
|
||||
if (virAsprintf(¨_driver->monitorDir,
|
||||
"%s/.uml", userdir) == -1)
|
||||
goto out_of_memory;
|
||||
}
|
||||
|
||||
/* Configuration paths are either ~/.libvirt/uml/... (session) or
|
||||
* /etc/libvirt/uml/... (system).
|
||||
|
Loading…
x
Reference in New Issue
Block a user