polkit Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
PolkitBackendInteractiveAuthority; struct PolkitBackendInteractiveAuthorityClass; GList * polkit_backend_interactive_authority_get_admin_identities (PolkitBackendInteractiveAuthority *authority
,PolkitSubject *caller
,PolkitSubject *subject
,PolkitIdentity *user_for_subject
,const gchar *action_id
,PolkitDetails *details
); 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
);
GObject +----PolkitBackendAuthority +----PolkitBackendInteractiveAuthority +----PolkitBackendLocalAuthority
An subclass of PolkitBackendAuthority that supports interaction with authentication agents.
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 NULL to use the default
implementation. See polkit_backend_interactive_authority_get_admin_identities() for details. |
|
Checks for an authorization or NULL to use the default implementation.
See polkit_backend_interactive_authority_check_authorization_sync() for details. |
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.
|
A PolkitBackendInteractiveAuthority. |
|
The subject that is inquiring whether subject is authorized. |
|
The subject we are about to authenticate for. |
|
The user of the subject we are about to authenticate for. |
|
The action we are about to authenticate for. |
|
Details about the action. |
Returns : |
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
.
|
A PolkitBackendInteractiveAuthority. |
|
The subject that is inquiring whether subject is authorized. |
|
The subject we are checking an authorization for. |
|
The user of the subject we are checking an authorization for. |
|
TRUE if the session for subject is local. |
|
TRUE if the session for subject is active. |
|
The action we are checking an authorization for. |
|
Details about the action. |
|
A PolkitImplicitAuthorization value computed from the policy file and subject . |
|
A PolkitDetails object that will be return to caller . |
Returns : |
A PolkitImplicitAuthorization that specifies if the subject is authorized or whether authentication is required. |