PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue Nov 20 19:58:49 PST 2007


 src/polkit-grant/polkit-authorization-db-dummy-write.c |   11 ++++++++++
 src/polkit/polkit-authorization-db-dummy.c             |   18 +++++++++++++++--
 2 files changed, 27 insertions(+), 2 deletions(-)

New commits:
commit 378caac7a6a7fca43d7b4f1d28870ab0b12ab8a5
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Nov 20 22:58:27 2007 -0500

    make dummy backend work

diff --git a/src/polkit-grant/polkit-authorization-db-dummy-write.c b/src/polkit-grant/polkit-authorization-db-dummy-write.c
index 9852da1..4ea491f 100644
--- a/src/polkit-grant/polkit-authorization-db-dummy-write.c
+++ b/src/polkit-grant/polkit-authorization-db-dummy-write.c
@@ -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;
+}
diff --git a/src/polkit/polkit-authorization-db-dummy.c b/src/polkit/polkit-authorization-db-dummy.c
index 536b395..b1d2662 100644
--- a/src/polkit/polkit-authorization-db-dummy.c
+++ b/src/polkit/polkit-authorization-db-dummy.c
@@ -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
 


More information about the hal-commit mailing list