summaryrefslogtreecommitdiff
path: root/polkit-interface-manager.xml
blob: b3a38019364569234149e32d96f46fae4540d999 (plain)
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
<?xml version="1.0" encoding="UTF-8" ?>

<node name="/org/freedesktop/PolicyKit/Manager">
  <interface name="org.freedesktop.PolicyKit.Manager">

    <method name="InitiatePrivilegeGrant">
      <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="session_objpath" type="o" direction="out"/>
    </method>

    <method name="IsUserPrivileged">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="pid"           type="i" direction="in"/>
      <arg name="user"          type="s" direction="in"/>
      <arg name="privilege"     type="s" direction="in"/>
      <arg name="resource"      type="s" direction="in"/>
      <arg name="is_privileged" 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"/>
    </method>

    <method name="ListPrivileges">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="privilege_list" type="as" direction="out"/>
    </method>

  </interface>
</node>