mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 17:24:53 +00:00
qemu_shim: set system identity
Otherwise looking up a secret fails when we try to elevate the identity in qemuDomainSecretInfoSetupFromSecret. https://bugzilla.redhat.com/show_bug.cgi?id=2000410 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f099d3fe10
commit
8c8cda2c9a
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "virfile.h"
|
#include "virfile.h"
|
||||||
#include "virgettext.h"
|
#include "virgettext.h"
|
||||||
|
#include "viridentity.h"
|
||||||
#include "virthread.h"
|
#include "virthread.h"
|
||||||
|
|
||||||
#define VIR_FROM_THIS VIR_FROM_QEMU
|
#define VIR_FROM_THIS VIR_FROM_QEMU
|
||||||
@ -133,6 +134,7 @@ qemuShimQuench(void *userData G_GNUC_UNUSED,
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
g_autoptr(virIdentity) sysident = NULL;
|
||||||
GThread *eventLoopThread = NULL;
|
GThread *eventLoopThread = NULL;
|
||||||
virConnectPtr conn = NULL;
|
virConnectPtr conn = NULL;
|
||||||
virConnectPtr sconn = NULL;
|
virConnectPtr sconn = NULL;
|
||||||
@ -191,6 +193,9 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
virSetErrorFunc(NULL, qemuShimQuench);
|
virSetErrorFunc(NULL, qemuShimQuench);
|
||||||
|
|
||||||
|
sysident = virIdentityGetSystem();
|
||||||
|
virIdentitySetCurrent(sysident);
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
g_printerr("%s: %lld: initializing signal handlers\n",
|
g_printerr("%s: %lld: initializing signal handlers\n",
|
||||||
argv[0], deltams());
|
argv[0], deltams());
|
||||||
|
Loading…
Reference in New Issue
Block a user