This file is indexed.

/etc/dbus-1/system.d/powerd.conf is in powerd 0.14+14.04.20140415-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<!-- This configuration file specifies the required security policies
     for powerd daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Only the root user can own the powerd name -->
  <policy user="root">
    <allow own="com.canonical.powerd"/>
  </policy>

  <!-- Permit the root user to invoke all of the methods on powerd,
       and to get and set properties. -->
  <policy user="root">
    <allow send_destination="com.canonical.powerd"/>
    <allow send_interface="com.canonical.powerd"/>
  </policy>

  <!-- Allow any user to introspect powerd's interfaces, to obtain the
       values of properties and only set some of them (brightness). -->
  <policy context="default">
    <allow send_destination="com.canonical.powerd"
	   send_interface="org.freedesktop.DBus.Introspectable" />
    <allow send_destination="com.canonical.powerd"
	   send_interface="org.freedesktop.DBus.Properties"
	   send_type="method_call" send_member="Get" />
    <allow send_destination="com.canonical.powerd"
	   send_interface="org.freedesktop.DBus.Properties"
	   send_type="method_call" send_member="GetAll" />

    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="userAutobrightnessEnable" />
    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="getBrightnessParams" />
    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="setUserBrightness" />

    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="listSysRequests" />
    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="listDisplayRequests" />

    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="getSysRequestStats" />
    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="getDispRequestStats" />

    <allow send_destination="com.canonical.powerd"
	   send_interface="com.canonical.powerd"
	   send_type="method_call" send_member="userAutobrightnessEnable" />

  </policy>

  <!-- Allow any user at console (adb shell) to send commands this is
       needed for unlocking the screen in tests (LP: 1298869) -->
  <policy at_console="true">
    <allow send_destination="com.canonical.powerd"/>
  </policy>

</busconfig>