mce.conf 10.1 KB
Newer Older
1 2 3 4 5 6 7 8 9
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>
	<policy user="root">
		<allow own="com.nokia.mce"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"/>
10 11 12 13 14

		<!-- Methods that are on purpose root-only:
		req_display_state_lpm_off - devel debug only
		req_display_state_lpm_on  - devel debug only
		req_cpu_keepalive_wakeup  - iphb wakeup from dsme
15 16
		req_charger_state         - devel debug only
		req_battery_level         - devel debug only
17
		-->
18 19 20
	</policy>

	<policy context="default">
21 22 23 24 25
		<allow send_destination="com.nokia.mce"
		       send_interface="org.freedesktop.DBus.Introspectable"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="org.freedesktop.DBus.Peer"/>

26 27 28 29 30 31 32 33 34
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_radio_states"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_call_state"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_tklock_mode"/>
35 36 37 38 39

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="keypad_slide_state_req"/>

40 41 42 43
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="keypad_available_state_req"/>

44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_display_status"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_cabc_mode"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_psm_state"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_psm_mode"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_key_backlight_state"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_inactivity_status"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_version"/>
65

66 67 68 69 70 71
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_config"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="set_config"/>
72 73 74
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="reset_config"/>
75 76 77
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_config_all"/>
78

79 80 81
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_color_profile"/>
82 83 84 85 86 87
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_color_profile_ids"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_color_profile_change"/>
88

89 90 91 92
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_memory_level"/>

93 94 95
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_radio_states_change"/>
96

97 98 99
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_call_state_change"/>
100

101 102 103 104 105 106 107 108 109
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_display_state_on"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_display_state_dim"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_display_state_off"/>
110 111 112 113
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_display_state_lpm"/>

114 115 116 117 118 119
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_display_blanking_pause"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_display_cancel_blanking_pause"/>
120
		<allow send_destination="com.nokia.mce"
121 122 123
		       send_interface="com.nokia.mce.request"
		       send_member="get_display_blanking_pause_allowed"/>
		<allow send_destination="com.nokia.mce"
124 125 126 127 128
		       send_interface="com.nokia.mce.request"
		       send_member="get_display_blanking_inhibit"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_display_blanking_pause"/>
129 130 131 132 133 134
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_cabc_mode"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_tklock_mode_change"/>
135

136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_trigger_powerkey_event"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_proximity_sensor_enable"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_proximity_sensor_disable"/>

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_led_pattern_activate"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_led_pattern_deactivate"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_led_enable"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_led_disable"/>
158 159 160 161 162 163 164 165 166 167

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_cpu_keepalive_period"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_cpu_keepalive_start"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_cpu_keepalive_stop"/>
168 169 170 171 172 173 174

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="notification_begin_req"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="notification_end_req"/>
175 176 177 178

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_suspend_stats"/>
179 180 181
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_display_stats"/>
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="add_activity_callback"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="remove_activity_callback"/>

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_display_blanking_policy"/>

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_verbosity"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="set_verbosity"/>

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="keyboard_available_state_req"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="keyboard_slide_state_req"/>

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="tklock_callback"/>

212 213 214
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_ignore_incoming_call"/>
215 216 217 218 219 220 221

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_usb_cable_state"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_battery_status"/>
222 223 224
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_battery_state"/>
225 226 227 228 229 230
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_battery_level"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_charger_state"/>
231 232 233
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_charger_type"/>
234 235 236 237 238 239 240 241

		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_touch_input_policy"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_keypad_input_policy"/>

242 243 244 245 246 247
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="get_button_backlight"/>
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_button_backlight_change"/>
248 249 250
		<allow send_destination="com.nokia.mce"
		       send_interface="com.nokia.mce.request"
		       send_member="req_button_backlight_mode"/>
251
	</policy>
252 253 254 255 256 257

	<!-- MCE expects some user process to provide compositor
	     D-Bus service. Normally it is lipstick, but it can
	     be something else too like act dead charging ui -->
	<policy context="default">
		<allow own="org.nemomobile.compositor" />
258 259
		<allow send_destination="org.nemomobile.compositor"
		       send_interface="org.nemomobile.compositor" />
260 261
	</policy>

262
</busconfig>