Aris Aachen (494e3fac) at 04 Jan 09:51
fix: add interfaceflags
Im not sure if is ok to do so, because this flags can have multi-flag case.
For example, NM_DEVICE_INTERFACE_FLAG_UP|NM_DEVICE_INTERFACE_FLAG_LOWER_UP is allowd when NM get device link-state from kernel.
fix please check it again thx
Aris Aachen (39724933) at 15 Dec 09:02
fix: add interfaceflags
politely ping
@aacid
thx
interfaceflags is used to indicate device link state
Aris Aachen (33a85f3d) at 09 Dec 07:37
fix: add interfaceflags
Aris Aachen (27c2a56e) at 08 Dec 07:11
fix: add interfaceflags
well, can I define own polkit error in this project?
or Is there anyway to set POLKIT_ERROR_CANCELLED?
thx @aacid
I hve replied in !15 (merged)
maybe define own polkit error is another choice, if you guys dont want to add polkit headers
when I write PolkitAgent, action "cancel" and "error" are required to diff.
but I found POLKIT_ERROR_CANCELLED cant be set into AsyncResult, in this case "polkit.dismissed" will not be set into return of CheckAuthorization, but its neccessary.
here is the code
static void
authentication_agent_begin_cb (GDBusProxy *proxy,
GAsyncResult *res,
gpointer user_data)
{
if (!g_dbus_proxy_call_finish (proxy,
res,
&error))
{
g_printerr ("Error performing authentication: %s (%s %d)\n",
error->message,
g_quark_to_string (error->domain),
error->code);
if (error->domain == POLKIT_ERROR && error->code == POLKIT_ERROR_CANCELLED)
was_dismissed = TRUE;
g_error_free (error);
}
else
{
gained_authorization = session->is_authenticated;
g_debug ("Authentication complete, is_authenticated = %d", session->is_authenticated);
}
session->callback (session->agent,
session->subject,
session->user_of_subject,
session->caller,
session->authority,
session->action_id,
session->implicit_authorization,
gained_authorization,
was_dismissed,
session->authenticated_identity,
session->user_data);
}
Aris Aachen (3b04407d) at 06 Aug 09:50
I hve rebase already @aacid pls check it again thx
Aris Aachen (3b04407d) at 06 Aug 07:43
Add polkit error
ping @aacid
polkit error includes POLKIT_ERROR_FAILED, POLKIT_ERROR_NOT_AUTHORIZED or others
related to !15 (merged)
Different polkit error should be return to polkitd