Commit 378caac7 authored by David Zeuthen's avatar David Zeuthen

make dummy backend work

parent 19e6c05e
......@@ -94,3 +94,14 @@ polkit_authorization_db_grant_to_uid (PolKitAuthorizationDB *
polkit_error_set_error (error, POLKIT_ERROR_NOT_SUPPORTED, "Not supported");
return FALSE;
}
polkit_bool_t
polkit_authorization_db_grant_negative_to_uid (PolKitAuthorizationDB *authdb,
PolKitAction *action,
uid_t uid,
PolKitAuthorizationConstraint *constraint,
PolKitError **error)
{
polkit_error_set_error (error, POLKIT_ERROR_NOT_SUPPORTED, "Not supported");
return FALSE;
}
......@@ -121,9 +121,11 @@ polkit_bool_t
polkit_authorization_db_is_session_authorized (PolKitAuthorizationDB *authdb,
PolKitAction *action,
PolKitSession *session,
polkit_bool_t *out_is_authorized)
polkit_bool_t *out_is_authorized,
polkit_bool_t *out_is_negative_authorized)
{
*out_is_authorized = FALSE;
*out_is_negative_authorized = FALSE;
return TRUE;
}
......@@ -132,9 +134,11 @@ polkit_authorization_db_is_caller_authorized (PolKitAuthorizationDB *authdb,
PolKitAction *action,
PolKitCaller *caller,
polkit_bool_t revoke_if_one_shot,
polkit_bool_t *out_is_authorized)
polkit_bool_t *out_is_authorized,
polkit_bool_t *out_is_negative_authorized)
{
*out_is_authorized = FALSE;
*out_is_negative_authorized = FALSE;
return TRUE;
}
......@@ -188,6 +192,16 @@ polkit_authorization_db_revoke_entry (PolKitAuthorizationDB *authdb,
return FALSE;
}
polkit_bool_t
polkit_authorization_db_is_uid_blocked_by_self (PolKitAuthorizationDB *authdb,
PolKitAction *action,
uid_t uid,
PolKitError **error)
{
polkit_error_set_error (error, POLKIT_ERROR_NOT_SUPPORTED, "Not supported");
return FALSE;
}
#ifdef POLKIT_BUILD_TESTS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment