diff options
author | David Zeuthen <david@fubar.dk> | 2006-06-05 23:39:00 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2006-06-05 23:39:00 +0000 |
commit | 1c3d5691ad444ae2849d079e3745d6b476614623 (patch) | |
tree | 0692c2f1eb10b1ea952449d09782cccb826588a6 /polkitd/polkit-manager.h | |
parent | 12d20fc8a71b59584f5636ac4dc85c36e45c0157 (diff) | |
download | polkit-1c3d5691ad444ae2849d079e3745d6b476614623.tar.gz |
Lots of changes! Almost ready for 0.2 release.
Diffstat (limited to 'polkitd/polkit-manager.h')
-rw-r--r-- | polkitd/polkit-manager.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/polkitd/polkit-manager.h b/polkitd/polkit-manager.h index f59e2dd..9d7b802 100644 --- a/polkitd/polkit-manager.h +++ b/polkitd/polkit-manager.h @@ -40,6 +40,7 @@ typedef enum POLKIT_MANAGER_ERROR_NO_SUCH_PRIVILEGE = 1, POLKIT_MANAGER_ERROR_NOT_PRIVILEGED = 2, POLKIT_MANAGER_ERROR_ERROR = 3, + POLKIT_MANAGER_ERROR_CANNOT_OBTAIN_PRIVILEGE = 4, POLKIT_MANAGER_NUM_ERRORS } PolkitManagerError; @@ -90,7 +91,7 @@ gboolean polkit_manager_revoke_temporary_privilege (PolicyKitM DBusGMethodInvocation *context); gboolean polkit_manager_is_user_privileged (PolicyKitManager *manager, - int pid, + char *system_bus_unique_name, char *user, char *privilege, char *resource, @@ -116,12 +117,16 @@ gboolean polkit_manager_add_temporary_privilege (PolicyKitM uid_t user, const char *privilege, const char *resource, - pid_t pid_restriction); + const char *system_bus_unique_name); gboolean polkit_manager_remove_temporary_privilege (PolicyKitManager *manager, uid_t user, const char *privilege, const char *resource, - pid_t pid_restriction); + const char *system_bus_unique_name, + gboolean remove_even_if_system_bus_unique_name_does_not_match); + +void polkit_manager_update_desktop_console_privileges (PolicyKitManager *manager); + #endif /* _POLKIT_MANAGER_H */ |