summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf
blob: c50a5144d743f36da456ecabd7dea5fe5a6337c6 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <!-- Only root can own the service -->
  <policy user="root">
    <allow own="org.trinitydesktop.hardwarecontrol"/>
  </policy>

  <policy at_console="true">
  <!-- Users with physical access to the machine are allowed access -->
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.freedesktop.DBus.Introspectable"/>

    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.Brightness"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.CPUGovernor"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.InputEvents"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.Power"
           send_interface="org.freedesktop.DBus.Properties"/>

    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.Brightness"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.CPUGovernor"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.InputEvents"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.Power"/>
  </policy>

  <policy group="plugdev">
  <!-- Users who are members of the plugdev group are allowed access -->
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.freedesktop.DBus.Introspectable"/>

    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.Brightness"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.CPUGovernor"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.InputEvents"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol.Power"
           send_interface="org.freedesktop.DBus.Properties"/>

    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.Brightness"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.CPUGovernor"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.InputEvents"/>
    <allow send_destination="org.trinitydesktop.hardwarecontrol"
           send_interface="org.trinitydesktop.hardwarecontrol.Power"/>
  </policy>

  <policy context="default">
    <!-- Everyone else is denied access -->
    <deny own="org.trinitydesktop.hardwarecontrol"/>

    <deny send_destination="org.trinitydesktop.hardwarecontrol"/>
  </policy>
</busconfig>