mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +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 "virgettext.h"
|
||||
#include "viridentity.h"
|
||||
#include "virthread.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_QEMU
|
||||
@ -133,6 +134,7 @@ qemuShimQuench(void *userData G_GNUC_UNUSED,
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
g_autoptr(virIdentity) sysident = NULL;
|
||||
GThread *eventLoopThread = NULL;
|
||||
virConnectPtr conn = NULL;
|
||||
virConnectPtr sconn = NULL;
|
||||
@ -191,6 +193,9 @@ int main(int argc, char **argv)
|
||||
|
||||
virSetErrorFunc(NULL, qemuShimQuench);
|
||||
|
||||
sysident = virIdentityGetSystem();
|
||||
virIdentitySetCurrent(sysident);
|
||||
|
||||
if (verbose)
|
||||
g_printerr("%s: %lld: initializing signal handlers\n",
|
||||
argv[0], deltams());
|
||||
|
Loading…
x
Reference in New Issue
Block a user