Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── PolkitBackendAuthority ╰── PolkitBackendInteractiveAuthority ╰── PolkitBackendLocalAuthority
An subclass of PolkitBackendAuthority that supports interaction with authentication agents.
GList * polkit_backend_interactive_authority_get_admin_identities (PolkitBackendInteractiveAuthority *authority
,PolkitSubject *caller
,PolkitSubject *subject
,PolkitIdentity *user_for_subject
,const gchar *action_id
,PolkitDetails *details
);
Gets a list of identities to use for administrator authentication.
The default implementation returns a list with a single element for the super user.
authority |
||
caller |
The subject that is inquiring whether |
|
subject |
The subject we are about to authenticate for. |
|
user_for_subject |
The user of the subject we are about to authenticate for. |
|
action_id |
The action we are about to authenticate for. |
|
details |
Details about the action. |
A list of PolkitIdentity objects. Free each element
g_object_unref()
, then free the list with g_list_free()
.
PolkitImplicitAuthorization polkit_backend_interactive_authority_check_authorization_sync (PolkitBackendInteractiveAuthority *authority
,PolkitSubject *caller
,PolkitSubject *subject
,PolkitIdentity *user_for_subject
,gboolean subject_is_local
,gboolean subject_is_active
,const gchar *action_id
,PolkitDetails *details
,PolkitImplicitAuthorization implicit
,PolkitDetails *out_details
);
Checks whether subject
is authorized to perform the action
specified by action_id
and details
. The implementation may
append key/value pairs to out_details
to return extra information
to caller
.
The default implementation of this method simply returns implicit
.
authority |
||
caller |
The subject that is inquiring whether |
|
subject |
The subject we are checking an authorization for. |
|
user_for_subject |
The user of the subject we are checking an authorization for. |
|
subject_is_local |
|
|
subject_is_active |
|
|
action_id |
The action we are checking an authorization for. |
|
details |
Details about the action. |
|
implicit |
A PolkitImplicitAuthorization value computed from the policy file and |
|
out_details |
A PolkitDetails object that will be return to |
A PolkitImplicitAuthorization that specifies if the subject is authorized or whether authentication is required.
typedef struct _PolkitBackendInteractiveAuthority PolkitBackendInteractiveAuthority;
The PolkitBackendInteractiveAuthority struct should not be accessed directly.
struct PolkitBackendInteractiveAuthorityClass { PolkitBackendAuthorityClass parent_class; /* VTable */ GList * (*get_admin_identities) (PolkitBackendInteractiveAuthority *authority, PolkitSubject *caller, PolkitSubject *subject, PolkitIdentity *user_for_subject, const gchar *action_id, PolkitDetails *details); PolkitImplicitAuthorization (*check_authorization_sync) (PolkitBackendInteractiveAuthority *authority, PolkitSubject *caller, PolkitSubject *subject, PolkitIdentity *user_for_subject, gboolean subject_is_local, gboolean subject_is_active, const gchar *action_id, PolkitDetails *details, PolkitImplicitAuthorization implicit, PolkitDetails *out_details); };
Class structure for PolkitBackendInteractiveAuthority.
PolkitBackendAuthorityClass |
The parent class. |
|
Returns list of identities for administrator authentication or |
||
Checks for an authorization or |