~upstart-devel/upstart/trunk

« back to all changes in this revision

Viewing changes to dbus/Upstart.conf

* Merge of lp:~jamesodhunt/upstart/remove-basic-user-sessions.
  (Note: won't compile due to dependency of commit about to be applied).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    <allow own="com.ubuntu.Upstart" />
10
10
  </policy>
11
11
 
12
 
  <!-- Allow any user to invoke all of the methods on Upstart, its jobs
13
 
       or their instances, and to get and set properties - since Upstart
14
 
       isolates commands by user. -->
15
 
  <policy context="default">
16
 
    <allow send_destination="com.ubuntu.Upstart"
17
 
           send_interface="org.freedesktop.DBus.Introspectable" />
 
12
  <!-- Permit the root user to invoke all of the methods on Upstart, its jobs
 
13
       or their instances, and to get and set properties. -->
 
14
  <policy user="root">
18
15
    <allow send_destination="com.ubuntu.Upstart"
19
16
           send_interface="org.freedesktop.DBus.Properties" />
 
17
 
20
18
    <allow send_destination="com.ubuntu.Upstart"
21
19
           send_interface="com.ubuntu.Upstart0_6" />
22
20
    <allow send_destination="com.ubuntu.Upstart"
24
22
    <allow send_destination="com.ubuntu.Upstart"
25
23
           send_interface="com.ubuntu.Upstart0_6.Instance" />
26
24
  </policy>
 
25
 
 
26
  <!-- Allow any user to introspect Upstart's interfaces, to obtain the
 
27
       values of properties (but not set them) and to invoke selected
 
28
       methods on Upstart and its jobs that are used to walk information. -->
 
29
  <policy context="default">
 
30
    <allow send_destination="com.ubuntu.Upstart"
 
31
           send_interface="org.freedesktop.DBus.Introspectable" />
 
32
 
 
33
    <allow send_destination="com.ubuntu.Upstart"
 
34
           send_interface="org.freedesktop.DBus.Properties"
 
35
           send_type="method_call" send_member="Get" />
 
36
    <allow send_destination="com.ubuntu.Upstart"
 
37
           send_interface="org.freedesktop.DBus.Properties"
 
38
           send_type="method_call" send_member="GetAll" />
 
39
 
 
40
    <allow send_destination="com.ubuntu.Upstart"
 
41
           send_interface="com.ubuntu.Upstart0_6"
 
42
           send_type="method_call" send_member="GetJobByName" />
 
43
    <allow send_destination="com.ubuntu.Upstart"
 
44
           send_interface="com.ubuntu.Upstart0_6"
 
45
           send_type="method_call" send_member="GetAllJobs" />
 
46
 
 
47
    <allow send_destination="com.ubuntu.Upstart"
 
48
           send_interface="com.ubuntu.Upstart0_6.Job"
 
49
           send_type="method_call" send_member="GetInstance" />
 
50
    <allow send_destination="com.ubuntu.Upstart"
 
51
           send_interface="com.ubuntu.Upstart0_6.Job"
 
52
           send_type="method_call" send_member="GetInstanceByName" />
 
53
    <allow send_destination="com.ubuntu.Upstart"
 
54
           send_interface="com.ubuntu.Upstart0_6.Job"
 
55
           send_type="method_call" send_member="GetAllInstances" />
 
56
  </policy>
27
57
</busconfig>