![]() |
![]() |
![]() |
PolicyKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
PolkitBackendLocalAuthorizationStorePolkitBackendLocalAuthorizationStore — Watches a directory for authorization files |
PolkitBackendLocalAuthorizationStore; PolkitBackendLocalAuthorizationStoreClass; PolkitBackendLocalAuthorizationStore * polkit_backend_local_authorization_store_new (GFile *directory, const gchar *extension); gboolean polkit_backend_local_authorization_store_lookup (PolkitBackendLocalAuthorizationStore *store, PolkitIdentity *identity, const gchar *action_id, PolkitDetails *details, PolkitImplicitAuthorization *out_result_any, PolkitImplicitAuthorization *out_result_inactive, PolkitImplicitAuthorization *out_result_active);
"directory" GFile* : Read / Write / Construct Only "extension" gchar* : Read / Write / Construct Only
PolkitBackendLocalAuthorizationStore is a utility class to watch and read authorization files from a directory.
typedef struct _PolkitBackendLocalAuthorizationStore PolkitBackendLocalAuthorizationStore;
typedef struct { GObjectClass parent_class; /* Signals */ void (*changed) (PolkitBackendLocalAuthorizationStore *store); } PolkitBackendLocalAuthorizationStoreClass;
PolkitBackendLocalAuthorizationStore * polkit_backend_local_authorization_store_new (GFile *directory, const gchar *extension);
Creates a new PolkitBackendLocalAuthorizationStore object that
reads authorizations from directory
with file extension
extension
. To watch for configuration changes, connect to the
"changed" signal.
|
The directory to watch. |
|
The extension of files to consider e.g. “.pkla”. |
Returns : |
A PolkitBackendLocalAuthorizationStore. Free with
g_object_unref() .
|
gboolean polkit_backend_local_authorization_store_lookup (PolkitBackendLocalAuthorizationStore *store, PolkitIdentity *identity, const gchar *action_id, PolkitDetails *details, PolkitImplicitAuthorization *out_result_any, PolkitImplicitAuthorization *out_result_inactive, PolkitImplicitAuthorization *out_result_active);
Checks if an authorization entry from store
matches identity
, action_id
and details
.
|
A PolkitBackendLocalAuthorizationStore. |
|
The identity to check for. |
|
The action id to check for. |
|
Details for action .
|
|
Return location for the result for any subjects if the look up matched. |
|
Return location for the result for subjects in local inactive sessions if the look up matched. |
|
Return location for the result for subjects in local active sessions if the look up matched. |
Returns : |
TRUE if store has an authorization entry that matches
identity , action_id and details . Otherwise FALSE .
|
"directory"
property"directory" GFile* : Read / Write / Construct Only
The directory to watch for authorization files.
"extension"
property"extension" gchar* : Read / Write / Construct Only
The file extension for files to consider, e.g. “.pkla”.
Default value: NULL
"changed"
signalvoid user_function (PolkitBackendLocalAuthorizationStore *polkitbackendlocalauthorizationstore, gpointer user_data) : Run Last