PolicyKit ChangeLog,1.17,1.18 polkit-interface-manager.xml,1.1,1.2
David Zeuthen
david at kemper.freedesktop.org
Sat Apr 22 16:27:16 PDT 2006
Update of /cvs/hal/PolicyKit
In directory kemper:/tmp/cvs-serv6540
Modified Files:
ChangeLog polkit-interface-manager.xml
Log Message:
2006-04-22 David Zeuthen <davidz at redhat.com>
* tools/polkit-list-privileges.c (main): Update to new D-BUS API;
print " (temporary)" for privilege if appropriate.
* tools/polkit-is-privileged.c (main): Update to new D-BUS API
* tools/polkit-grant-privilege.c:
(do_grant_privilege): Update to new D-BUS API
(main): --do--
* tools/polkit-revoke-privilege.c: New file
* tools/Makefile.am: Add build rules for polkit-revoke-privilege
* polkitd/polkit-manager.h: Fix up prototypes
* polkitd/polkit-manager.c:
(polkit_manager_initiate_temporary_privilege_grant): Update to new
D-BUS API
(polkit_manager_get_allowed_resources_for_privilege): --do--
(polkit_manager_revoke_temporary_privilege): New function
(polkit_manager_remove_temporary_privilege): Fix up resource handling
(polkit_manager_add_temporary_privilege): --do--
* libpolkit/libpolkit.h:
(libpolkit_get_allowed_resources_for_privilege_for_uid): Update to
new D-BUS API and export libpolkit_revoke_temporary_privilege()
* libpolkit/libpolkit.c:
(libpolkit_is_uid_allowed_for_privilege): Update to new D-BUS API
(libpolkit_get_allowed_resources_for_privilege_for_uid): --do--
(libpolkit_revoke_temporary_privilege): New function
* polkit-interface-manager.xml: Rename InitiatePrivilegeGrant() to
InitiateTemporaryPrivilegeGrant(). Add new function
RevokeTemporaryPrivilege(). Make IsUserPrivileged() output a
boolean is_temporary. GetAllowedResourcesForPrivilege() now also
outputs an integer num_non_temp.
Index: ChangeLog
===================================================================
RCS file: /cvs/hal/PolicyKit/ChangeLog,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- ChangeLog 22 Apr 2006 02:24:00 -0000 1.17
+++ ChangeLog 22 Apr 2006 23:27:14 -0000 1.18
@@ -1,3 +1,43 @@
+2006-04-22 David Zeuthen <davidz at redhat.com>
+
+ * tools/polkit-list-privileges.c (main): Update to new D-BUS API;
+ print " (temporary)" for privilege if appropriate.
+
+ * tools/polkit-is-privileged.c (main): Update to new D-BUS API
+
+ * tools/polkit-grant-privilege.c:
+ (do_grant_privilege): Update to new D-BUS API
+ (main): --do--
+
+ * tools/polkit-revoke-privilege.c: New file
+
+ * tools/Makefile.am: Add build rules for polkit-revoke-privilege
+
+ * polkitd/polkit-manager.h: Fix up prototypes
+
+ * polkitd/polkit-manager.c:
+ (polkit_manager_initiate_temporary_privilege_grant): Update to new
+ D-BUS API
+ (polkit_manager_get_allowed_resources_for_privilege): --do--
+ (polkit_manager_revoke_temporary_privilege): New function
+ (polkit_manager_remove_temporary_privilege): Fix up resource handling
+ (polkit_manager_add_temporary_privilege): --do--
+
+ * libpolkit/libpolkit.h:
+ (libpolkit_get_allowed_resources_for_privilege_for_uid): Update to
+ new D-BUS API and export libpolkit_revoke_temporary_privilege()
+
+ * libpolkit/libpolkit.c:
+ (libpolkit_is_uid_allowed_for_privilege): Update to new D-BUS API
+ (libpolkit_get_allowed_resources_for_privilege_for_uid): --do--
+ (libpolkit_revoke_temporary_privilege): New function
+
+ * polkit-interface-manager.xml: Rename InitiatePrivilegeGrant() to
+ InitiateTemporaryPrivilegeGrant(). Add new function
+ RevokeTemporaryPrivilege(). Make IsUserPrivileged() output a
+ boolean is_temporary. GetAllowedResourcesForPrivilege() now also
+ outputs an integer num_non_temp.
+
2006-04-21 David Zeuthen <davidz at redhat.com>
* doc/spec/polkit-spec.xml.in: Write some more stuff
Index: polkit-interface-manager.xml
===================================================================
RCS file: /cvs/hal/PolicyKit/polkit-interface-manager.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- polkit-interface-manager.xml 14 Mar 2006 06:14:33 -0000 1.1
+++ polkit-interface-manager.xml 22 Apr 2006 23:27:14 -0000 1.2
@@ -3,7 +3,7 @@
<node name="/org/freedesktop/PolicyKit/Manager">
<interface name="org.freedesktop.PolicyKit.Manager">
- <method name="InitiatePrivilegeGrant">
+ <method name="InitiateTemporaryPrivilegeGrant">
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<arg name="user" type="s" direction="in"/>
<arg name="privilege" type="s" direction="in"/>
@@ -11,6 +11,14 @@
<arg name="session_objpath" type="o" direction="out"/>
</method>
+ <method name="RevokeTemporaryPrivilege">
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
+ <arg name="user" type="s" direction="in"/>
+ <arg name="privilege" type="s" direction="in"/>
+ <arg name="resource" type="s" direction="in"/>
+ <arg name="was_revoked" type="b" direction="out"/>
+ </method>
+
<method name="IsUserPrivileged">
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<arg name="pid" type="i" direction="in"/>
@@ -18,13 +26,15 @@
<arg name="privilege" type="s" direction="in"/>
<arg name="resource" type="s" direction="in"/>
<arg name="is_privileged" type="b" direction="out"/>
+ <arg name="is_temporary" type="b" direction="out"/>
</method>
<method name="GetAllowedResourcesForPrivilege">
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
- <arg name="user" type="s" direction="in"/>
- <arg name="privilege" type="s" direction="in"/>
- <arg name="resource_list" type="as" direction="out"/>
+ <arg name="user" type="s" direction="in"/>
+ <arg name="privilege" type="s" direction="in"/>
+ <arg name="resource_list" type="as" direction="out"/>
+ <arg name="num_non_temp" type="i" direction="out"/>
</method>
<method name="ListPrivileges">
More information about the hal-commit
mailing list