Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 1 | # Properties used only in /system |
2 | system_internal_prop(adbd_prop) | ||||
David Anderson | 09bb944 | 2020-11-13 00:45:59 -0800 | [diff] [blame] | 3 | system_internal_prop(ctl_snapuserd_prop) |
Yi Kong | 0ac0072 | 2020-10-27 02:29:52 +0800 | [diff] [blame] | 4 | system_internal_prop(device_config_profcollect_native_boot_prop) |
Tej Singh | dd0988f | 2020-11-17 19:26:23 -0800 | [diff] [blame] | 5 | system_internal_prop(device_config_statsd_native_prop) |
6 | system_internal_prop(device_config_statsd_native_boot_prop) | ||||
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 7 | system_internal_prop(device_config_storage_native_boot_prop) |
8 | system_internal_prop(device_config_sys_traced_prop) | ||||
9 | system_internal_prop(device_config_window_manager_native_boot_prop) | ||||
10 | system_internal_prop(device_config_configuration_prop) | ||||
Xiao Ma | 2d6c9f0 | 2021-02-02 10:27:38 +0000 | [diff] [blame] | 11 | system_internal_prop(device_config_connectivity_prop) |
Nick Chalko | 81a4dd4 | 2021-02-11 09:12:51 -0800 | [diff] [blame] | 12 | system_internal_prop(device_config_swcodec_native_prop) |
Hongguang Chen | 91a5f4e | 2020-04-23 23:43:13 -0700 | [diff] [blame] | 13 | system_internal_prop(fastbootd_protocol_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 14 | system_internal_prop(gsid_prop) |
15 | system_internal_prop(init_perf_lsm_hooks_prop) | ||||
Inseob Kim | 15e5e0a | 2020-05-14 19:43:08 +0900 | [diff] [blame] | 16 | system_internal_prop(init_service_status_private_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 17 | system_internal_prop(init_svc_debug_prop) |
Paul Crowley | b0c5571 | 2021-02-23 08:40:05 -0800 | [diff] [blame] | 18 | system_internal_prop(keystore_listen_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 19 | system_internal_prop(last_boot_reason_prop) |
Alexander Mishkovets | f0be89b | 2020-07-08 23:11:03 +0200 | [diff] [blame] | 20 | system_internal_prop(localization_prop) |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 21 | system_internal_prop(lower_kptr_restrict_prop) |
Lorenzo Colitti | 082ebd2 | 2021-03-10 14:45:07 +0900 | [diff] [blame] | 22 | system_internal_prop(net_464xlat_fromvendor_prop) |
Lorenzo Colitti | 26d3d4a | 2021-03-10 15:31:36 +0900 | [diff] [blame] | 23 | system_internal_prop(net_connectivity_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 24 | system_internal_prop(netd_stable_secret_prop) |
Martijn Coenen | f2e4ee6 | 2021-03-16 08:34:30 +0100 | [diff] [blame^] | 25 | system_internal_prop(odsign_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 26 | system_internal_prop(pm_prop) |
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 27 | system_internal_prop(rollback_test_prop) |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 28 | system_internal_prop(setupwizard_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 29 | system_internal_prop(system_adbd_prop) |
Benjamin Schwartz | 3e4d97b | 2020-10-30 13:55:21 -0700 | [diff] [blame] | 30 | system_internal_prop(suspend_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 31 | system_internal_prop(traced_perf_enabled_prop) |
32 | system_internal_prop(userspace_reboot_log_prop) | ||||
33 | system_internal_prop(userspace_reboot_test_prop) | ||||
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 34 | system_internal_prop(verity_status_prop) |
35 | system_internal_prop(zygote_wrap_prop) | ||||
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 36 | |
Janis Danisevskis | 202e863 | 2020-10-23 11:16:34 -0700 | [diff] [blame] | 37 | # TODO Remove this property when Keystore 2.0 migration is complete b/171563717 |
38 | system_internal_prop(keystore2_enable_prop) | ||||
39 | |||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 40 | ### |
41 | ### Neverallow rules | ||||
42 | ### | ||||
43 | |||||
44 | treble_sysprop_neverallow(` | ||||
45 | |||||
Inseob Kim | afc0993 | 2020-09-28 13:32:43 +0900 | [diff] [blame] | 46 | enforce_sysprop_owner(` |
47 | neverallow domain { | ||||
48 | property_type | ||||
49 | -system_property_type | ||||
50 | -product_property_type | ||||
51 | -vendor_property_type | ||||
52 | }:file no_rw_file_perms; | ||||
53 | ') | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 54 | |
55 | neverallow { domain -coredomain } { | ||||
56 | system_property_type | ||||
57 | system_internal_property_type | ||||
58 | -system_restricted_property_type | ||||
59 | -system_public_property_type | ||||
60 | }:file no_rw_file_perms; | ||||
61 | |||||
62 | neverallow { domain -coredomain } { | ||||
63 | system_property_type | ||||
64 | -system_public_property_type | ||||
65 | }:property_service set; | ||||
66 | |||||
67 | # init is in coredomain, but should be able to read/write all props. | ||||
68 | # dumpstate is also in coredomain, but should be able to read all props. | ||||
69 | neverallow { coredomain -init -dumpstate } { | ||||
70 | vendor_property_type | ||||
71 | vendor_internal_property_type | ||||
72 | -vendor_restricted_property_type | ||||
73 | -vendor_public_property_type | ||||
74 | }:file no_rw_file_perms; | ||||
75 | |||||
76 | neverallow { coredomain -init } { | ||||
77 | vendor_property_type | ||||
78 | -vendor_public_property_type | ||||
79 | }:property_service set; | ||||
80 | |||||
81 | ') | ||||
82 | |||||
83 | # There is no need to perform ioctl or advisory locking operations on | ||||
84 | # property files. If this neverallow is being triggered, it is | ||||
85 | # likely that the policy is using r_file_perms directly instead of | ||||
86 | # the get_prop() macro. | ||||
87 | neverallow domain property_type:file { ioctl lock }; | ||||
88 | |||||
89 | neverallow * { | ||||
90 | core_property_type | ||||
91 | -audio_prop | ||||
92 | -config_prop | ||||
93 | -cppreopt_prop | ||||
94 | -dalvik_prop | ||||
95 | -debuggerd_prop | ||||
96 | -debug_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 97 | -dhcp_prop |
98 | -dumpstate_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 99 | -fingerprint_prop |
100 | -logd_prop | ||||
101 | -net_radio_prop | ||||
102 | -nfc_prop | ||||
103 | -ota_prop | ||||
104 | -pan_result_prop | ||||
105 | -persist_debug_prop | ||||
106 | -powerctl_prop | ||||
107 | -radio_prop | ||||
108 | -restorecon_prop | ||||
109 | -shell_prop | ||||
110 | -system_prop | ||||
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 111 | -usb_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 112 | -vold_prop |
113 | }:file no_rw_file_perms; | ||||
114 | |||||
115 | # sigstop property is only used for debugging; should only be set by su which is permissive | ||||
116 | # for userdebug/eng | ||||
117 | neverallow { | ||||
118 | domain | ||||
119 | -init | ||||
120 | -vendor_init | ||||
121 | } ctl_sigstop_prop:property_service set; | ||||
122 | |||||
123 | # Don't audit legacy ctl. property handling. We only want the newer permission check to appear | ||||
124 | # in the audit log | ||||
125 | dontaudit domain { | ||||
126 | ctl_bootanim_prop | ||||
127 | ctl_bugreport_prop | ||||
128 | ctl_console_prop | ||||
129 | ctl_default_prop | ||||
130 | ctl_dumpstate_prop | ||||
131 | ctl_fuse_prop | ||||
132 | ctl_mdnsd_prop | ||||
133 | ctl_rildaemon_prop | ||||
134 | }:property_service set; | ||||
135 | |||||
136 | neverallow { | ||||
137 | domain | ||||
138 | -init | ||||
139 | } init_svc_debug_prop:property_service set; | ||||
140 | |||||
141 | neverallow { | ||||
142 | domain | ||||
143 | -init | ||||
144 | -dumpstate | ||||
145 | userdebug_or_eng(`-su') | ||||
146 | } init_svc_debug_prop:file no_rw_file_perms; | ||||
147 | |||||
148 | compatible_property_only(` | ||||
149 | # Prevent properties from being set | ||||
150 | neverallow { | ||||
151 | domain | ||||
152 | -coredomain | ||||
153 | -appdomain | ||||
154 | -vendor_init | ||||
155 | } { | ||||
156 | core_property_type | ||||
157 | extended_core_property_type | ||||
158 | exported_config_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 159 | exported_default_prop |
160 | exported_dumpstate_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 161 | exported_system_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 162 | exported3_system_prop |
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 163 | usb_control_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 164 | -nfc_prop |
165 | -powerctl_prop | ||||
166 | -radio_prop | ||||
167 | }:property_service set; | ||||
168 | |||||
169 | neverallow { | ||||
170 | domain | ||||
171 | -coredomain | ||||
172 | -appdomain | ||||
173 | -hal_nfc_server | ||||
174 | } { | ||||
175 | nfc_prop | ||||
176 | }:property_service set; | ||||
177 | |||||
178 | neverallow { | ||||
179 | domain | ||||
180 | -coredomain | ||||
181 | -appdomain | ||||
182 | -hal_telephony_server | ||||
183 | -vendor_init | ||||
184 | } { | ||||
Inseob Kim | acd02fc | 2020-07-28 15:17:24 +0900 | [diff] [blame] | 185 | radio_control_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 186 | }:property_service set; |
187 | |||||
188 | neverallow { | ||||
189 | domain | ||||
190 | -coredomain | ||||
191 | -appdomain | ||||
192 | -hal_telephony_server | ||||
193 | } { | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 194 | radio_prop |
195 | }:property_service set; | ||||
196 | |||||
197 | neverallow { | ||||
198 | domain | ||||
199 | -coredomain | ||||
200 | -bluetooth | ||||
201 | -hal_bluetooth_server | ||||
202 | } { | ||||
203 | bluetooth_prop | ||||
204 | }:property_service set; | ||||
205 | |||||
206 | neverallow { | ||||
207 | domain | ||||
208 | -coredomain | ||||
209 | -bluetooth | ||||
210 | -hal_bluetooth_server | ||||
211 | -vendor_init | ||||
212 | } { | ||||
213 | exported_bluetooth_prop | ||||
214 | }:property_service set; | ||||
215 | |||||
216 | neverallow { | ||||
217 | domain | ||||
218 | -coredomain | ||||
219 | -hal_camera_server | ||||
220 | -cameraserver | ||||
221 | -vendor_init | ||||
222 | } { | ||||
223 | exported_camera_prop | ||||
224 | }:property_service set; | ||||
225 | |||||
226 | neverallow { | ||||
227 | domain | ||||
228 | -coredomain | ||||
229 | -hal_wifi_server | ||||
230 | -wificond | ||||
231 | } { | ||||
232 | wifi_prop | ||||
233 | }:property_service set; | ||||
234 | |||||
235 | neverallow { | ||||
236 | domain | ||||
Inseob Kim | 3dbf3d8 | 2020-06-25 21:20:42 +0900 | [diff] [blame] | 237 | -init |
238 | -dumpstate | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 239 | -hal_wifi_server |
240 | -wificond | ||||
241 | -vendor_init | ||||
242 | } { | ||||
Inseob Kim | 3dbf3d8 | 2020-06-25 21:20:42 +0900 | [diff] [blame] | 243 | wifi_hal_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 244 | }:property_service set; |
245 | |||||
246 | # Prevent properties from being read | ||||
247 | neverallow { | ||||
248 | domain | ||||
249 | -coredomain | ||||
250 | -appdomain | ||||
251 | -vendor_init | ||||
252 | } { | ||||
253 | core_property_type | ||||
Inseob Kim | d8c39d9 | 2020-04-20 19:36:33 +0900 | [diff] [blame] | 254 | dalvik_config_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 255 | extended_core_property_type |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 256 | exported3_system_prop |
Inseob Kim | fd2d6ec | 2020-04-01 10:01:16 +0900 | [diff] [blame] | 257 | systemsound_config_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 258 | -debug_prop |
259 | -logd_prop | ||||
260 | -nfc_prop | ||||
261 | -powerctl_prop | ||||
262 | -radio_prop | ||||
263 | }:file no_rw_file_perms; | ||||
264 | |||||
265 | neverallow { | ||||
266 | domain | ||||
267 | -coredomain | ||||
268 | -appdomain | ||||
269 | -hal_nfc_server | ||||
270 | } { | ||||
271 | nfc_prop | ||||
272 | }:file no_rw_file_perms; | ||||
273 | |||||
274 | neverallow { | ||||
275 | domain | ||||
276 | -coredomain | ||||
277 | -appdomain | ||||
278 | -hal_telephony_server | ||||
279 | } { | ||||
280 | radio_prop | ||||
281 | }:file no_rw_file_perms; | ||||
282 | |||||
283 | neverallow { | ||||
284 | domain | ||||
285 | -coredomain | ||||
286 | -bluetooth | ||||
287 | -hal_bluetooth_server | ||||
288 | } { | ||||
289 | bluetooth_prop | ||||
290 | }:file no_rw_file_perms; | ||||
291 | |||||
292 | neverallow { | ||||
293 | domain | ||||
294 | -coredomain | ||||
295 | -hal_wifi_server | ||||
296 | -wificond | ||||
297 | } { | ||||
298 | wifi_prop | ||||
299 | }:file no_rw_file_perms; | ||||
Benjamin Schwartz | 3e4d97b | 2020-10-30 13:55:21 -0700 | [diff] [blame] | 300 | |
301 | neverallow { | ||||
302 | domain | ||||
303 | -init | ||||
304 | } { | ||||
305 | suspend_prop | ||||
306 | }:property_service set; | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 307 | ') |
308 | |||||
309 | compatible_property_only(` | ||||
310 | # Neverallow coredomain to set vendor properties | ||||
311 | neverallow { | ||||
312 | coredomain | ||||
313 | -init | ||||
314 | -system_writes_vendor_properties_violators | ||||
315 | } { | ||||
316 | property_type | ||||
317 | -system_property_type | ||||
318 | -extended_core_property_type | ||||
319 | }:property_service set; | ||||
320 | ') | ||||
321 | |||||
322 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 323 | domain |
Inseob Kim | bfb3708 | 2020-04-27 23:49:15 +0900 | [diff] [blame] | 324 | -coredomain |
325 | -vendor_init | ||||
326 | } { | ||||
327 | ffs_config_prop | ||||
328 | ffs_control_prop | ||||
329 | }:file no_rw_file_perms; | ||||
330 | |||||
331 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 332 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 333 | -init |
334 | -system_server | ||||
335 | } { | ||||
336 | userspace_reboot_log_prop | ||||
337 | }:property_service set; | ||||
338 | |||||
339 | neverallow { | ||||
340 | # Only allow init and system_server to set system_adbd_prop | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 341 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 342 | -init |
343 | -system_server | ||||
344 | } { | ||||
345 | system_adbd_prop | ||||
346 | }:property_service set; | ||||
347 | |||||
Josh Gao | 0cac6fd | 2020-10-28 13:56:23 -0700 | [diff] [blame] | 348 | # Let (vendor_)init, adbd, and system_server set service.adb.tcp.port |
349 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 350 | domain |
Josh Gao | 0cac6fd | 2020-10-28 13:56:23 -0700 | [diff] [blame] | 351 | -init |
352 | -vendor_init | ||||
353 | -adbd | ||||
354 | -system_server | ||||
355 | } { | ||||
356 | adbd_config_prop | ||||
357 | }:property_service set; | ||||
358 | |||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 359 | neverallow { |
360 | # Only allow init and adbd to set adbd_prop | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 361 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 362 | -init |
363 | -adbd | ||||
364 | } { | ||||
365 | adbd_prop | ||||
366 | }:property_service set; | ||||
367 | |||||
368 | neverallow { | ||||
369 | # Only allow init and shell to set userspace_reboot_test_prop | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 370 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 371 | -init |
372 | -shell | ||||
373 | } { | ||||
374 | userspace_reboot_test_prop | ||||
375 | }:property_service set; | ||||
Inseob Kim | 721d921 | 2020-04-24 21:25:17 +0900 | [diff] [blame] | 376 | |
377 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 378 | domain |
Inseob Kim | 721d921 | 2020-04-24 21:25:17 +0900 | [diff] [blame] | 379 | -init |
380 | -system_server | ||||
381 | -vendor_init | ||||
382 | } { | ||||
383 | surfaceflinger_color_prop | ||||
384 | }:property_service set; | ||||
Inseob Kim | 9add20f | 2020-05-06 22:20:35 +0900 | [diff] [blame] | 385 | |
386 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 387 | domain |
Inseob Kim | 9add20f | 2020-05-06 22:20:35 +0900 | [diff] [blame] | 388 | -init |
389 | } { | ||||
390 | libc_debug_prop | ||||
391 | }:property_service set; | ||||
Inseob Kim | 36aeb16 | 2020-05-08 20:42:25 +0900 | [diff] [blame] | 392 | |
Mitch Phillips | eaf1404 | 2020-12-03 17:23:06 -0800 | [diff] [blame] | 393 | # Allow the shell to set MTE props, so that non-root users with adb shell |
394 | # access can control the settings on their device. | ||||
395 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 396 | domain |
Mitch Phillips | eaf1404 | 2020-12-03 17:23:06 -0800 | [diff] [blame] | 397 | -init |
398 | -shell | ||||
399 | } { | ||||
400 | arm64_memtag_prop | ||||
401 | }:property_service set; | ||||
402 | |||||
Inseob Kim | 36aeb16 | 2020-05-08 20:42:25 +0900 | [diff] [blame] | 403 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 404 | domain |
Inseob Kim | 36aeb16 | 2020-05-08 20:42:25 +0900 | [diff] [blame] | 405 | -init |
406 | -system_server | ||||
407 | -vendor_init | ||||
408 | } zram_control_prop:property_service set; | ||||
Inseob Kim | 1337e15 | 2020-05-12 22:51:48 +0900 | [diff] [blame] | 409 | |
410 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 411 | domain |
Inseob Kim | 1337e15 | 2020-05-12 22:51:48 +0900 | [diff] [blame] | 412 | -init |
413 | -system_server | ||||
414 | -vendor_init | ||||
415 | } dalvik_runtime_prop:property_service set; | ||||
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 416 | |
417 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 418 | domain |
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 419 | -coredomain |
420 | -vendor_init | ||||
421 | } { | ||||
422 | usb_config_prop | ||||
423 | usb_control_prop | ||||
424 | }:property_service set; | ||||
Inseob Kim | 3b82aec | 2020-05-14 01:38:40 +0900 | [diff] [blame] | 425 | |
426 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 427 | domain |
Inseob Kim | 3b82aec | 2020-05-14 01:38:40 +0900 | [diff] [blame] | 428 | -init |
429 | -system_server | ||||
430 | } { | ||||
431 | provisioned_prop | ||||
432 | retaildemo_prop | ||||
433 | }:property_service set; | ||||
434 | |||||
435 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 436 | domain |
Inseob Kim | 3b82aec | 2020-05-14 01:38:40 +0900 | [diff] [blame] | 437 | -coredomain |
438 | -vendor_init | ||||
439 | } { | ||||
440 | provisioned_prop | ||||
441 | retaildemo_prop | ||||
442 | }:file no_rw_file_perms; | ||||
Inseob Kim | 15e5e0a | 2020-05-14 19:43:08 +0900 | [diff] [blame] | 443 | |
444 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 445 | domain |
Inseob Kim | 15e5e0a | 2020-05-14 19:43:08 +0900 | [diff] [blame] | 446 | -init |
447 | } { | ||||
448 | init_service_status_private_prop | ||||
449 | init_service_status_prop | ||||
450 | }:property_service set; | ||||
Inseob Kim | ad63170 | 2020-05-14 21:47:43 +0900 | [diff] [blame] | 451 | |
452 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 453 | domain |
Inseob Kim | ad63170 | 2020-05-14 21:47:43 +0900 | [diff] [blame] | 454 | -init |
455 | -radio | ||||
456 | -appdomain | ||||
457 | -hal_telephony_server | ||||
Inseob Kim | 285da2f | 2020-06-04 20:29:43 +0900 | [diff] [blame] | 458 | not_compatible_property(`-vendor_init') |
Inseob Kim | ad63170 | 2020-05-14 21:47:43 +0900 | [diff] [blame] | 459 | } telephony_status_prop:property_service set; |
Peiyong Lin | 37dea07 | 2020-06-03 12:20:41 -0700 | [diff] [blame] | 460 | |
461 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 462 | domain |
Peiyong Lin | 37dea07 | 2020-06-03 12:20:41 -0700 | [diff] [blame] | 463 | -init |
464 | -vendor_init | ||||
465 | } { | ||||
466 | graphics_config_prop | ||||
467 | }:property_service set; | ||||
Inseob Kim | 6ffdf1b | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 468 | |
469 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 470 | domain |
Amy Hsu | 0f352fb | 2020-06-15 17:04:12 +0800 | [diff] [blame] | 471 | -init |
Midas Chien | 0d0391f | 2020-06-17 22:13:21 +0800 | [diff] [blame] | 472 | -surfaceflinger |
Amy Hsu | 0f352fb | 2020-06-15 17:04:12 +0800 | [diff] [blame] | 473 | } { |
474 | surfaceflinger_display_prop | ||||
475 | }:property_service set; | ||||
476 | |||||
Inseob Kim | 072b014 | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 477 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 478 | domain |
Inseob Kim | 5eacf72 | 2020-07-01 01:27:49 +0900 | [diff] [blame] | 479 | -coredomain |
480 | -appdomain | ||||
Inseob Kim | 6ffdf1b | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 481 | -vendor_init |
Inseob Kim | 6ffdf1b | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 482 | } packagemanager_config_prop:file no_rw_file_perms; |
Inseob Kim | 04f435c | 2020-07-07 12:46:24 +0900 | [diff] [blame] | 483 | |
484 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 485 | domain |
Inseob Kim | 04f435c | 2020-07-07 12:46:24 +0900 | [diff] [blame] | 486 | -coredomain |
487 | -vendor_init | ||||
488 | } keyguard_config_prop:file no_rw_file_perms; | ||||
Alexander Mishkovets | f0be89b | 2020-07-08 23:11:03 +0200 | [diff] [blame] | 489 | |
490 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 491 | domain |
Alexander Mishkovets | f0be89b | 2020-07-08 23:11:03 +0200 | [diff] [blame] | 492 | -init |
493 | } { | ||||
494 | localization_prop | ||||
495 | }:property_service set; | ||||
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 496 | |
497 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 498 | domain |
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 499 | -init |
500 | -vendor_init | ||||
501 | -dumpstate | ||||
502 | -system_app | ||||
503 | } oem_unlock_prop:file no_rw_file_perms; | ||||
504 | |||||
505 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 506 | domain |
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 507 | -coredomain |
508 | -vendor_init | ||||
509 | } storagemanager_config_prop:file no_rw_file_perms; | ||||
510 | |||||
511 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 512 | domain |
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 513 | -init |
514 | -vendor_init | ||||
515 | -dumpstate | ||||
516 | -appdomain | ||||
517 | } sendbug_config_prop:file no_rw_file_perms; | ||||
Inseob Kim | c97a97c | 2020-07-20 20:26:07 +0900 | [diff] [blame] | 518 | |
519 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 520 | domain |
Inseob Kim | c97a97c | 2020-07-20 20:26:07 +0900 | [diff] [blame] | 521 | -init |
522 | -vendor_init | ||||
523 | -dumpstate | ||||
524 | -appdomain | ||||
525 | } camera_calibration_prop:file no_rw_file_perms; | ||||
Inseob Kim | 46dd4be | 2020-08-18 11:25:32 +0900 | [diff] [blame] | 526 | |
527 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 528 | domain |
Inseob Kim | 46dd4be | 2020-08-18 11:25:32 +0900 | [diff] [blame] | 529 | -init |
530 | -dumpstate | ||||
Jeff Vander Stoep | 684d25b | 2020-08-25 11:41:00 +0200 | [diff] [blame] | 531 | -hal_dumpstate_server |
Inseob Kim | 46dd4be | 2020-08-18 11:25:32 +0900 | [diff] [blame] | 532 | not_compatible_property(`-vendor_init') |
533 | } hal_dumpstate_config_prop:file no_rw_file_perms; | ||||
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 534 | |
535 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 536 | domain |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 537 | -init |
538 | userdebug_or_eng(`-traced_probes') | ||||
Florian Mayer | 167407d | 2020-11-11 11:01:36 +0000 | [diff] [blame] | 539 | userdebug_or_eng(`-traced_perf') |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 540 | } { |
541 | lower_kptr_restrict_prop | ||||
542 | }:property_service set; | ||||
Janis Danisevskis | 202e863 | 2020-10-23 11:16:34 -0700 | [diff] [blame] | 543 | |
544 | # TODO Remove this property when Keystore 2.0 migration is complete b/171563717 | ||||
545 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 546 | domain |
Janis Danisevskis | 202e863 | 2020-10-23 11:16:34 -0700 | [diff] [blame] | 547 | -init |
548 | -dumpstate | ||||
549 | -system_app | ||||
550 | -system_server | ||||
551 | -zygote | ||||
552 | } keystore2_enable_prop:file no_rw_file_perms; | ||||
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 553 | |
554 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 555 | domain |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 556 | -init |
557 | } zygote_wrap_prop:property_service set; | ||||
558 | |||||
559 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 560 | domain |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 561 | -init |
562 | } verity_status_prop:property_service set; | ||||
563 | |||||
564 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 565 | domain |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 566 | -init |
567 | } setupwizard_prop:property_service set; | ||||
Inseob Kim | 9985566 | 2020-11-12 22:21:51 +0900 | [diff] [blame] | 568 | |
569 | # ro.product.property_source_order is useless after initialization of ro.product.* props. | ||||
570 | # So making it accessible only from init and vendor_init. | ||||
571 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 572 | domain |
Inseob Kim | 9985566 | 2020-11-12 22:21:51 +0900 | [diff] [blame] | 573 | -init |
574 | -dumpstate | ||||
575 | -vendor_init | ||||
576 | } build_config_prop:file no_rw_file_perms; | ||||
Inseob Kim | 0cef0fe | 2020-11-17 13:54:52 +0900 | [diff] [blame] | 577 | |
578 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 579 | domain |
Inseob Kim | 0cef0fe | 2020-11-17 13:54:52 +0900 | [diff] [blame] | 580 | -init |
581 | -shell | ||||
582 | } sqlite_log_prop:property_service set; | ||||
583 | |||||
584 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 585 | domain |
Inseob Kim | 0cef0fe | 2020-11-17 13:54:52 +0900 | [diff] [blame] | 586 | -coredomain |
587 | -appdomain | ||||
588 | } sqlite_log_prop:file no_rw_file_perms; | ||||
Inseob Kim | 4c110ff | 2020-11-26 21:50:23 +0900 | [diff] [blame] | 589 | |
Inseob Kim | 5c011e5 | 2021-01-14 04:08:16 +0000 | [diff] [blame] | 590 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 591 | domain |
Inseob Kim | 5c011e5 | 2021-01-14 04:08:16 +0000 | [diff] [blame] | 592 | -init |
593 | } default_prop:property_service set; | ||||
594 | |||||
Inseob Kim | 4c110ff | 2020-11-26 21:50:23 +0900 | [diff] [blame] | 595 | # Only one of system_property_type and vendor_property_type can be assigned. |
596 | # Property types having both attributes won't be accessible from anywhere. | ||||
597 | neverallow domain system_and_vendor_property_type:{file property_service} *; | ||||
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 598 | |
599 | neverallow { | ||||
600 | # Only allow init and shell to set rollback_test_prop | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 601 | domain |
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 602 | -init |
603 | -shell | ||||
604 | } rollback_test_prop:property_service set; |