1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/">
<interface name="org.freedesktop.PolicyKit">
<method name="IsProcessAuthorized">
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<!-- IN: PolicyKit action identifier -->
<arg name="action_id" direction="in" type="s"/>
<!-- IN: process id of caller to check for -->
<arg name="pid" direction="in" type="u"/>
<!-- IN: see parameter 'revoke_if_one_shot' in polkit_context_is_caller_authorized() -->
<arg name="revoke_if_one_shot" direction="in" type="b"/>
<!-- OUT: the PolKitResult in textual form -->
<arg name="result" direction="out" type="s"/>
</method>
<method name="IsSystemBusNameAuthorized">
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<!-- IN: PolicyKit action identifier -->
<arg name="action_id" direction="in" type="s"/>
<!-- IN: Unique name on the system bus of the caller to check for -->
<arg name="system_bus_name" direction="in" type="s"/>
<!-- IN: see parameter 'revoke_if_one_shot' in polkit_context_is_caller_authorized() -->
<arg name="revoke_if_one_shot" direction="in" type="b"/>
<!-- OUT: the PolKitResult in textual form -->
<arg name="result" direction="out" type="s"/>
</method>
<!-- Both methods can throw these exceptions:
org.freedesktop.PolicyKit.GeneralError
if e.g. the passed parameters are bogus
org.freedesktop.PolicyKit.NotAuthorized
if the caller is not authorized to know this; e.g. if he
lacks the org.freedesktop.policykit.read authorization
-->
</interface>
</node>
|