mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Expose method name when logging authorization steps
This commit is contained in:
committed by
Marco Trevisan
parent
c00a3375d1
commit
783d82f359
@ -1923,8 +1923,9 @@ handle_unauthorized_access (FprintDevice *rdev,
|
|||||||
|
|
||||||
g_assert (error);
|
g_assert (error);
|
||||||
|
|
||||||
g_warning ("Client %s not authorized for device %s: %s",
|
g_warning ("Client %s not authorized to call method '%s' for device %s: %s",
|
||||||
g_dbus_method_invocation_get_sender (invocation),
|
g_dbus_method_invocation_get_sender (invocation),
|
||||||
|
g_dbus_method_invocation_get_method_name (invocation),
|
||||||
fp_device_get_name (priv->dev),
|
fp_device_get_name (priv->dev),
|
||||||
error->message);
|
error->message);
|
||||||
g_dbus_method_invocation_return_gerror (invocation, error);
|
g_dbus_method_invocation_return_gerror (invocation, error);
|
||||||
@ -1978,8 +1979,9 @@ action_authorization_handler (GDBusInterfaceSkeleton *interface,
|
|||||||
&error))
|
&error))
|
||||||
return handle_unauthorized_access (rdev, invocation, error);
|
return handle_unauthorized_access (rdev, invocation, error);
|
||||||
|
|
||||||
g_debug ("Authorization granted to %s for device %s!",
|
g_debug ("Authorization granted to %s to call method '%s' for device %s!",
|
||||||
fp_device_get_name (priv->dev),
|
fp_device_get_name (priv->dev),
|
||||||
|
g_dbus_method_invocation_get_method_name (invocation),
|
||||||
g_dbus_method_invocation_get_sender (invocation));
|
g_dbus_method_invocation_get_sender (invocation));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user