mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-22 21:00:51 +02:00
Ignore ActivationFailure if not using systemd activation
This isn't security-related, just defensive programming: if dbus-daemon wasn't run with --systemd-activation, then there is no reason why systemd would legitimately send us this signal, and if it does we should just ignore it. Signed-off-by: Simon McVittie <smcv@debian.org> Reviewed-by: Colin Walters <walters@verbum.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98157
This commit is contained in:
parent
28fc54e352
commit
a511e9e4b8
1 changed files with 8 additions and 0 deletions
|
|
@ -2643,6 +2643,14 @@ bus_driver_handle_message (DBusConnection *connection,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
if (!bus_context_get_systemd_activation (context))
|
||||
{
|
||||
bus_context_log (context, DBUS_SYSTEM_LOG_WARNING,
|
||||
"Ignoring unexpected ActivationFailure message "
|
||||
"while not using systemd activation");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return dbus_activation_systemd_failure(bus_context_get_activation(context), message);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue