mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
Use per-user TLS certificates when possible
When using TLS authentication and operating as the non-root user, initially attempt to use that specific user's TLS certificates before attempting to use the system wide TLS certificates. Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
parent
6bae93d33b
commit
a67407fa36
1
.mailmap
1
.mailmap
@ -19,3 +19,4 @@
|
||||
<soren@linux2go.dk> <soren@canonical.com>
|
||||
<cfergeau@redhat.com> <teuf@gnome.org>
|
||||
<wency@cn.fujitsu.com> <wency cn fujitsu com>
|
||||
<cardoe@cardoe.com> <cardoe@gentoo.org>
|
||||
|
2
AUTHORS
2
AUTHORS
@ -81,7 +81,7 @@ Patches have also been contributed by:
|
||||
Serge E. Hallyn <serue@us.ibm.com>
|
||||
Soren Hansen <soren@linux2go.dk>
|
||||
Abel Míguez Rodríguez<amiguezr@pdi.ucm.es>
|
||||
Doug Goldstein <cardoe@gentoo.org>
|
||||
Doug Goldstein <cardoe@cardoe.com>
|
||||
Javier Fontan <jfontan@gmail.com>
|
||||
Federico Simoncelli <federico.simoncelli@gmail.com>
|
||||
Amy Griffis <amy.griffis@hp.com>
|
||||
|
@ -1159,7 +1159,7 @@ initialize_gnutls(char *pkipath, int flags)
|
||||
if ((virAsprintf(&libvirt_clientcert, "%s/%s", pkipath,
|
||||
"clientcert.pem")) < 0)
|
||||
goto out_of_memory;
|
||||
} else if (flags & VIR_DRV_OPEN_REMOTE_USER) {
|
||||
} else if (flags & VIR_DRV_OPEN_REMOTE_USER || getuid() > 0) {
|
||||
userdir = virGetUserDirectory(getuid());
|
||||
|
||||
if (!userdir)
|
||||
|
Loading…
Reference in New Issue
Block a user