mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
logging: Don't inhibit shutdown in system daemon
That is a job of libvirtd and virtlogd has a dependency on it, so that will prevent it properly. Doing it one extra time in virtlogd might also cause AVC denials because it is not allowed to call that dbus method. Caused by commit df34363d58bb. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1547250 Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
00b50292fd
commit
f94e5b2157
@ -128,6 +128,12 @@ virLogDaemonInhibitor(bool inhibit, void *opaque)
|
||||
{
|
||||
virLogDaemonPtr dmn = opaque;
|
||||
|
||||
/* virtlogd uses inhibition only to stop session daemon being killed after
|
||||
* the specified timeout, for the system daemon this is taken care of by
|
||||
* libvirtd and the dependencies between the services. */
|
||||
if (virNetDaemonIsPrivileged(dmn->dmn))
|
||||
return;
|
||||
|
||||
if (inhibit)
|
||||
virNetDaemonAddShutdownInhibition(dmn->dmn);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user