GNOME Bugzilla – Bug 739616
DBus; Add new call flag to allow interactive authorization
Last modified: 2015-06-05 18:45:26 UTC
Created attachment 289973 [details] [review] patch DBus has recently introduced new message flag DBUS_HEADER_FLAG_ALLOW_INTERACTIVE_AUTHORIZATION, which tells that caller is willing to wait for unspecified amount of time for the call to return, as the service may perform interactive authorization (e.g. using polkit). See https://bugs.freedesktop.org/show_bug.cgi?id=83449 for details. Attached patch adds new flags to appropriate places so glib applications can set it. Tested with systemd 217, where e.g. org.freedesktop.Manager.StartUnit() call uses this flag to allow interactive polkit authorization.
Review of attachment 289973 [details] [review]: Looks good. Please commit this. I think this feature would be a lot more usable if we added an API to GDBusMethodInvocation: gboolean g_dbus_method_invocation_allows_interactive_authentication (GDBusMethodInvocation *invocation); Would you mind adding that in a separate patch?