Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 1 | # Properties used only in /system |
2 | system_internal_prop(adbd_prop) | ||||
Richard Fung | 0c7c267 | 2021-11-08 20:09:54 +0000 | [diff] [blame] | 3 | system_internal_prop(apexd_payload_metadata_prop) |
David Anderson | 09bb944 | 2020-11-13 00:45:59 -0800 | [diff] [blame] | 4 | system_internal_prop(ctl_snapuserd_prop) |
Harshit Mahajan | 7740a47 | 2024-02-01 13:00:46 +0000 | [diff] [blame^] | 5 | system_internal_prop(crashrecovery_prop) |
Dennis Shen | 3b8c57f | 2023-07-25 20:15:02 +0000 | [diff] [blame] | 6 | system_internal_prop(device_config_core_experiments_team_internal_prop) |
Suren Baghdasaryan | 592e06c | 2021-08-04 12:31:43 -0700 | [diff] [blame] | 7 | system_internal_prop(device_config_lmkd_native_prop) |
Kalesh Singh | 9e25714 | 2022-04-06 14:31:26 -0700 | [diff] [blame] | 8 | system_internal_prop(device_config_mglru_native_prop) |
Yi Kong | 0ac0072 | 2020-10-27 02:29:52 +0800 | [diff] [blame] | 9 | system_internal_prop(device_config_profcollect_native_boot_prop) |
Vikram Gaur | e1c49f5 | 2022-09-29 21:20:22 +0000 | [diff] [blame] | 10 | system_internal_prop(device_config_remote_key_provisioning_native_prop) |
Tej Singh | dd0988f | 2020-11-17 19:26:23 -0800 | [diff] [blame] | 11 | system_internal_prop(device_config_statsd_native_prop) |
12 | system_internal_prop(device_config_statsd_native_boot_prop) | ||||
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 13 | system_internal_prop(device_config_storage_native_boot_prop) |
14 | system_internal_prop(device_config_sys_traced_prop) | ||||
15 | system_internal_prop(device_config_window_manager_native_boot_prop) | ||||
16 | system_internal_prop(device_config_configuration_prop) | ||||
Xiao Ma | 2d6c9f0 | 2021-02-02 10:27:38 +0000 | [diff] [blame] | 17 | system_internal_prop(device_config_connectivity_prop) |
Nick Chalko | 81a4dd4 | 2021-02-11 09:12:51 -0800 | [diff] [blame] | 18 | system_internal_prop(device_config_swcodec_native_prop) |
Motomu Utsumi | 2473262 | 2023-05-11 19:36:18 +0900 | [diff] [blame] | 19 | system_internal_prop(device_config_tethering_u_or_later_native_prop) |
Alexander Potapenko | 0a64d10 | 2022-01-28 19:48:27 +0100 | [diff] [blame] | 20 | system_internal_prop(dmesgd_start_prop) |
Hongguang Chen | 91a5f4e | 2020-04-23 23:43:13 -0700 | [diff] [blame] | 21 | system_internal_prop(fastbootd_protocol_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 22 | system_internal_prop(gsid_prop) |
23 | system_internal_prop(init_perf_lsm_hooks_prop) | ||||
Inseob Kim | 15e5e0a | 2020-05-14 19:43:08 +0900 | [diff] [blame] | 24 | system_internal_prop(init_service_status_private_prop) |
Suren Baghdasaryan | 9fdb298 | 2022-09-07 13:13:47 -0700 | [diff] [blame] | 25 | system_internal_prop(init_storage_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 26 | system_internal_prop(init_svc_debug_prop) |
Hasini Gunasinghe | 4fa6b1a | 2021-07-02 23:14:50 +0000 | [diff] [blame] | 27 | system_internal_prop(keystore_crash_prop) |
Paul Crowley | b0c5571 | 2021-02-23 08:40:05 -0800 | [diff] [blame] | 28 | system_internal_prop(keystore_listen_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 29 | system_internal_prop(last_boot_reason_prop) |
Alexander Mishkovets | f0be89b | 2020-07-08 23:11:03 +0200 | [diff] [blame] | 30 | system_internal_prop(localization_prop) |
Snild Dolkow | ef0f369 | 2023-11-10 10:58:01 +0100 | [diff] [blame] | 31 | system_internal_prop(logd_auditrate_prop) |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 32 | system_internal_prop(lower_kptr_restrict_prop) |
Lorenzo Colitti | 082ebd2 | 2021-03-10 14:45:07 +0900 | [diff] [blame] | 33 | system_internal_prop(net_464xlat_fromvendor_prop) |
Lorenzo Colitti | 26d3d4a | 2021-03-10 15:31:36 +0900 | [diff] [blame] | 34 | system_internal_prop(net_connectivity_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 35 | system_internal_prop(netd_stable_secret_prop) |
Dennis Shen | bb028e3 | 2023-09-29 17:28:28 +0000 | [diff] [blame] | 36 | system_internal_prop(next_boot_prop) |
Martijn Coenen | f2e4ee6 | 2021-03-16 08:34:30 +0100 | [diff] [blame] | 37 | system_internal_prop(odsign_prop) |
Michael Rosenfeld | 3ccbebb | 2021-02-10 18:45:35 -0800 | [diff] [blame] | 38 | system_internal_prop(perf_drop_caches_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 39 | system_internal_prop(pm_prop) |
Yi Kong | 9b65845 | 2021-03-22 22:02:22 +0800 | [diff] [blame] | 40 | system_internal_prop(profcollectd_node_id_prop) |
Nazanin | b373dd0 | 2021-04-29 21:52:42 -0700 | [diff] [blame] | 41 | system_internal_prop(radio_cdma_ecm_prop) |
Andrew Scull | edba76d | 2022-10-31 18:27:29 +0000 | [diff] [blame] | 42 | system_internal_prop(remote_prov_prop) |
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 43 | system_internal_prop(rollback_test_prop) |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 44 | system_internal_prop(setupwizard_prop) |
David Anderson | bf5b6ce | 2021-07-26 15:03:11 -0700 | [diff] [blame] | 45 | system_internal_prop(snapuserd_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 46 | system_internal_prop(system_adbd_prop) |
Neil Fuller | bbb00fa | 2022-09-23 14:10:35 +0100 | [diff] [blame] | 47 | system_internal_prop(timezone_metadata_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 48 | system_internal_prop(traced_perf_enabled_prop) |
Yu-Ting Tseng | 43cae4e | 2023-12-15 00:48:23 +0000 | [diff] [blame] | 49 | system_internal_prop(uprobestats_start_with_config_prop) |
Hongguang | 9515559 | 2022-08-09 14:57:02 -0700 | [diff] [blame] | 50 | system_internal_prop(tuner_server_ctl_prop) |
Inseob Kim | bbae4a9 | 2020-03-19 17:49:08 +0900 | [diff] [blame] | 51 | system_internal_prop(userspace_reboot_log_prop) |
52 | system_internal_prop(userspace_reboot_test_prop) | ||||
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 53 | system_internal_prop(verity_status_prop) |
54 | system_internal_prop(zygote_wrap_prop) | ||||
hkuang | de370e5 | 2021-05-14 12:52:54 -0700 | [diff] [blame] | 55 | system_internal_prop(ctl_mediatranscoding_prop) |
Martijn Coenen | 5f21a0f | 2021-07-27 13:47:42 +0200 | [diff] [blame] | 56 | system_internal_prop(ctl_odsign_prop) |
Jiyong Park | b804de2 | 2021-09-16 21:06:20 +0900 | [diff] [blame] | 57 | system_internal_prop(virtualizationservice_prop) |
Jooyung Han | ccfb0ef | 2022-07-07 15:42:39 +0900 | [diff] [blame] | 58 | system_internal_prop(ctl_apex_load_prop) |
Pawan Wagh | 60cc0b3 | 2023-08-29 00:09:29 +0000 | [diff] [blame] | 59 | system_internal_prop(enable_16k_pages_prop) |
Pontus Lidman | 0af0e71 | 2023-07-20 19:09:48 +0000 | [diff] [blame] | 60 | system_internal_prop(sensors_config_prop) |
Jaewan Kim | 4183cbb | 2023-08-31 07:58:08 +0000 | [diff] [blame] | 61 | system_internal_prop(hypervisor_pvmfw_prop) |
62 | system_internal_prop(hypervisor_virtualizationmanager_prop) | ||||
Andy Yu | e2fb30d | 2023-10-19 17:43:51 -0700 | [diff] [blame] | 63 | system_internal_prop(game_manager_config_prop) |
Devin Moore | 01b91e7 | 2023-11-30 23:06:43 +0000 | [diff] [blame] | 64 | system_internal_prop(hidl_memory_prop) |
Radu Solea | 82db343 | 2023-12-01 10:07:28 -0800 | [diff] [blame] | 65 | system_internal_prop(suspend_debug_prop) |
Pontus Lidman | 0af0e71 | 2023-07-20 19:09:48 +0000 | [diff] [blame] | 66 | |
Andrew Scull | aedd65a | 2021-10-08 12:13:46 +0000 | [diff] [blame] | 67 | # Properties which can't be written outside system |
68 | system_restricted_prop(device_config_virtualization_framework_native_prop) | ||||
Jiyong Park | c4f84bc | 2022-09-18 23:09:53 +0900 | [diff] [blame] | 69 | system_restricted_prop(log_file_logger_prop) |
Alexander Roederer | 829d974 | 2023-03-23 02:19:22 +0000 | [diff] [blame] | 70 | system_restricted_prop(persist_sysui_builder_extras_prop) |
Alexander Roederer | 584a862 | 2023-05-31 21:25:50 +0000 | [diff] [blame] | 71 | system_restricted_prop(persist_sysui_ranking_update_prop) |
Andrew Scull | aedd65a | 2021-10-08 12:13:46 +0000 | [diff] [blame] | 72 | |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 73 | ### |
74 | ### Neverallow rules | ||||
75 | ### | ||||
76 | |||||
77 | treble_sysprop_neverallow(` | ||||
78 | |||||
Inseob Kim | afc0993 | 2020-09-28 13:32:43 +0900 | [diff] [blame] | 79 | enforce_sysprop_owner(` |
80 | neverallow domain { | ||||
81 | property_type | ||||
82 | -system_property_type | ||||
83 | -product_property_type | ||||
84 | -vendor_property_type | ||||
85 | }:file no_rw_file_perms; | ||||
86 | ') | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 87 | |
88 | neverallow { domain -coredomain } { | ||||
89 | system_property_type | ||||
90 | system_internal_property_type | ||||
91 | -system_restricted_property_type | ||||
92 | -system_public_property_type | ||||
93 | }:file no_rw_file_perms; | ||||
94 | |||||
95 | neverallow { domain -coredomain } { | ||||
96 | system_property_type | ||||
97 | -system_public_property_type | ||||
98 | }:property_service set; | ||||
99 | |||||
100 | # init is in coredomain, but should be able to read/write all props. | ||||
101 | # dumpstate is also in coredomain, but should be able to read all props. | ||||
102 | neverallow { coredomain -init -dumpstate } { | ||||
103 | vendor_property_type | ||||
104 | vendor_internal_property_type | ||||
105 | -vendor_restricted_property_type | ||||
106 | -vendor_public_property_type | ||||
107 | }:file no_rw_file_perms; | ||||
108 | |||||
109 | neverallow { coredomain -init } { | ||||
110 | vendor_property_type | ||||
111 | -vendor_public_property_type | ||||
112 | }:property_service set; | ||||
113 | |||||
114 | ') | ||||
115 | |||||
116 | # There is no need to perform ioctl or advisory locking operations on | ||||
117 | # property files. If this neverallow is being triggered, it is | ||||
118 | # likely that the policy is using r_file_perms directly instead of | ||||
119 | # the get_prop() macro. | ||||
120 | neverallow domain property_type:file { ioctl lock }; | ||||
121 | |||||
122 | neverallow * { | ||||
123 | core_property_type | ||||
124 | -audio_prop | ||||
125 | -config_prop | ||||
126 | -cppreopt_prop | ||||
127 | -dalvik_prop | ||||
128 | -debuggerd_prop | ||||
129 | -debug_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 130 | -dhcp_prop |
131 | -dumpstate_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 132 | -fingerprint_prop |
133 | -logd_prop | ||||
134 | -net_radio_prop | ||||
135 | -nfc_prop | ||||
136 | -ota_prop | ||||
137 | -pan_result_prop | ||||
138 | -persist_debug_prop | ||||
139 | -powerctl_prop | ||||
140 | -radio_prop | ||||
141 | -restorecon_prop | ||||
142 | -shell_prop | ||||
143 | -system_prop | ||||
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 144 | -usb_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 145 | -vold_prop |
146 | }:file no_rw_file_perms; | ||||
147 | |||||
148 | # sigstop property is only used for debugging; should only be set by su which is permissive | ||||
149 | # for userdebug/eng | ||||
150 | neverallow { | ||||
151 | domain | ||||
152 | -init | ||||
153 | -vendor_init | ||||
154 | } ctl_sigstop_prop:property_service set; | ||||
155 | |||||
156 | # Don't audit legacy ctl. property handling. We only want the newer permission check to appear | ||||
157 | # in the audit log | ||||
158 | dontaudit domain { | ||||
159 | ctl_bootanim_prop | ||||
160 | ctl_bugreport_prop | ||||
161 | ctl_console_prop | ||||
162 | ctl_default_prop | ||||
163 | ctl_dumpstate_prop | ||||
164 | ctl_fuse_prop | ||||
165 | ctl_mdnsd_prop | ||||
166 | ctl_rildaemon_prop | ||||
167 | }:property_service set; | ||||
168 | |||||
169 | neverallow { | ||||
170 | domain | ||||
171 | -init | ||||
Suren Baghdasaryan | 9fdb298 | 2022-09-07 13:13:47 -0700 | [diff] [blame] | 172 | -extra_free_kbytes |
173 | } init_storage_prop:property_service set; | ||||
174 | |||||
175 | neverallow { | ||||
176 | domain | ||||
177 | -init | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 178 | } init_svc_debug_prop:property_service set; |
179 | |||||
180 | neverallow { | ||||
181 | domain | ||||
182 | -init | ||||
183 | -dumpstate | ||||
184 | userdebug_or_eng(`-su') | ||||
185 | } init_svc_debug_prop:file no_rw_file_perms; | ||||
186 | |||||
187 | compatible_property_only(` | ||||
188 | # Prevent properties from being set | ||||
189 | neverallow { | ||||
190 | domain | ||||
191 | -coredomain | ||||
192 | -appdomain | ||||
193 | -vendor_init | ||||
194 | } { | ||||
195 | core_property_type | ||||
196 | extended_core_property_type | ||||
197 | exported_config_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 198 | exported_default_prop |
199 | exported_dumpstate_prop | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 200 | exported_system_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 201 | exported3_system_prop |
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 202 | usb_control_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 203 | -nfc_prop |
204 | -powerctl_prop | ||||
205 | -radio_prop | ||||
206 | }:property_service set; | ||||
207 | |||||
208 | neverallow { | ||||
209 | domain | ||||
210 | -coredomain | ||||
211 | -appdomain | ||||
212 | -hal_nfc_server | ||||
213 | } { | ||||
214 | nfc_prop | ||||
215 | }:property_service set; | ||||
216 | |||||
217 | neverallow { | ||||
218 | domain | ||||
219 | -coredomain | ||||
220 | -appdomain | ||||
221 | -hal_telephony_server | ||||
222 | -vendor_init | ||||
223 | } { | ||||
Inseob Kim | acd02fc | 2020-07-28 15:17:24 +0900 | [diff] [blame] | 224 | radio_control_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 225 | }:property_service set; |
226 | |||||
227 | neverallow { | ||||
228 | domain | ||||
229 | -coredomain | ||||
230 | -appdomain | ||||
231 | -hal_telephony_server | ||||
232 | } { | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 233 | radio_prop |
234 | }:property_service set; | ||||
235 | |||||
236 | neverallow { | ||||
237 | domain | ||||
238 | -coredomain | ||||
239 | -bluetooth | ||||
240 | -hal_bluetooth_server | ||||
241 | } { | ||||
242 | bluetooth_prop | ||||
243 | }:property_service set; | ||||
244 | |||||
245 | neverallow { | ||||
246 | domain | ||||
247 | -coredomain | ||||
248 | -bluetooth | ||||
249 | -hal_bluetooth_server | ||||
250 | -vendor_init | ||||
251 | } { | ||||
252 | exported_bluetooth_prop | ||||
253 | }:property_service set; | ||||
254 | |||||
255 | neverallow { | ||||
256 | domain | ||||
257 | -coredomain | ||||
258 | -hal_camera_server | ||||
259 | -cameraserver | ||||
260 | -vendor_init | ||||
261 | } { | ||||
262 | exported_camera_prop | ||||
263 | }:property_service set; | ||||
264 | |||||
265 | neverallow { | ||||
266 | domain | ||||
267 | -coredomain | ||||
268 | -hal_wifi_server | ||||
269 | -wificond | ||||
270 | } { | ||||
271 | wifi_prop | ||||
272 | }:property_service set; | ||||
273 | |||||
274 | neverallow { | ||||
275 | domain | ||||
Inseob Kim | 3dbf3d8 | 2020-06-25 21:20:42 +0900 | [diff] [blame] | 276 | -init |
277 | -dumpstate | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 278 | -hal_wifi_server |
279 | -wificond | ||||
280 | -vendor_init | ||||
281 | } { | ||||
Inseob Kim | 3dbf3d8 | 2020-06-25 21:20:42 +0900 | [diff] [blame] | 282 | wifi_hal_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 283 | }:property_service set; |
284 | |||||
285 | # Prevent properties from being read | ||||
286 | neverallow { | ||||
287 | domain | ||||
288 | -coredomain | ||||
289 | -appdomain | ||||
290 | -vendor_init | ||||
291 | } { | ||||
292 | core_property_type | ||||
Jiakai Zhang | 22fb5c7 | 2023-03-30 15:50:05 +0100 | [diff] [blame] | 293 | dalvik_config_prop_type |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 294 | extended_core_property_type |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 295 | exported3_system_prop |
Inseob Kim | fd2d6ec | 2020-04-01 10:01:16 +0900 | [diff] [blame] | 296 | systemsound_config_prop |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 297 | -debug_prop |
298 | -logd_prop | ||||
299 | -nfc_prop | ||||
300 | -powerctl_prop | ||||
301 | -radio_prop | ||||
302 | }:file no_rw_file_perms; | ||||
303 | |||||
304 | neverallow { | ||||
305 | domain | ||||
306 | -coredomain | ||||
307 | -appdomain | ||||
308 | -hal_nfc_server | ||||
309 | } { | ||||
310 | nfc_prop | ||||
311 | }:file no_rw_file_perms; | ||||
312 | |||||
313 | neverallow { | ||||
314 | domain | ||||
315 | -coredomain | ||||
316 | -appdomain | ||||
317 | -hal_telephony_server | ||||
318 | } { | ||||
319 | radio_prop | ||||
320 | }:file no_rw_file_perms; | ||||
321 | |||||
322 | neverallow { | ||||
323 | domain | ||||
324 | -coredomain | ||||
325 | -bluetooth | ||||
326 | -hal_bluetooth_server | ||||
327 | } { | ||||
328 | bluetooth_prop | ||||
329 | }:file no_rw_file_perms; | ||||
330 | |||||
331 | neverallow { | ||||
332 | domain | ||||
333 | -coredomain | ||||
334 | -hal_wifi_server | ||||
335 | -wificond | ||||
336 | } { | ||||
337 | wifi_prop | ||||
338 | }:file no_rw_file_perms; | ||||
Benjamin Schwartz | 3e4d97b | 2020-10-30 13:55:21 -0700 | [diff] [blame] | 339 | |
340 | neverallow { | ||||
341 | domain | ||||
Benjamin Schwartz | c171a1d | 2021-04-20 09:13:02 -0700 | [diff] [blame] | 342 | -coredomain |
343 | -vendor_init | ||||
Benjamin Schwartz | 3e4d97b | 2020-10-30 13:55:21 -0700 | [diff] [blame] | 344 | } { |
345 | suspend_prop | ||||
346 | }:property_service set; | ||||
Radu Solea | 82db343 | 2023-12-01 10:07:28 -0800 | [diff] [blame] | 347 | |
348 | neverallow { | ||||
349 | domain | ||||
350 | -init | ||||
351 | } { | ||||
352 | suspend_debug_prop | ||||
353 | }:property_service set; | ||||
354 | |||||
355 | neverallow { | ||||
356 | domain | ||||
357 | -init | ||||
358 | -dumpstate | ||||
359 | userdebug_or_eng(`-system_suspend') | ||||
360 | } { | ||||
361 | suspend_debug_prop | ||||
362 | }:file no_rw_file_perms; | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 363 | ') |
364 | |||||
Radu Solea | 82db343 | 2023-12-01 10:07:28 -0800 | [diff] [blame] | 365 | dontaudit system_suspend suspend_debug_prop:file r_file_perms; |
366 | |||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 367 | compatible_property_only(` |
368 | # Neverallow coredomain to set vendor properties | ||||
369 | neverallow { | ||||
370 | coredomain | ||||
371 | -init | ||||
372 | -system_writes_vendor_properties_violators | ||||
373 | } { | ||||
374 | property_type | ||||
375 | -system_property_type | ||||
376 | -extended_core_property_type | ||||
377 | }:property_service set; | ||||
378 | ') | ||||
379 | |||||
380 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 381 | domain |
Inseob Kim | bfb3708 | 2020-04-27 23:49:15 +0900 | [diff] [blame] | 382 | -coredomain |
383 | -vendor_init | ||||
384 | } { | ||||
385 | ffs_config_prop | ||||
386 | ffs_control_prop | ||||
387 | }:file no_rw_file_perms; | ||||
388 | |||||
389 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 390 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 391 | -init |
392 | -system_server | ||||
393 | } { | ||||
394 | userspace_reboot_log_prop | ||||
395 | }:property_service set; | ||||
396 | |||||
397 | neverallow { | ||||
398 | # Only allow init and system_server to set system_adbd_prop | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 399 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 400 | -init |
401 | -system_server | ||||
402 | } { | ||||
403 | system_adbd_prop | ||||
404 | }:property_service set; | ||||
405 | |||||
Josh Gao | 0cac6fd | 2020-10-28 13:56:23 -0700 | [diff] [blame] | 406 | # Let (vendor_)init, adbd, and system_server set service.adb.tcp.port |
407 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 408 | domain |
Josh Gao | 0cac6fd | 2020-10-28 13:56:23 -0700 | [diff] [blame] | 409 | -init |
410 | -vendor_init | ||||
411 | -adbd | ||||
412 | -system_server | ||||
413 | } { | ||||
414 | adbd_config_prop | ||||
415 | }:property_service set; | ||||
416 | |||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 417 | neverallow { |
418 | # Only allow init and adbd to set adbd_prop | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 419 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 420 | -init |
421 | -adbd | ||||
422 | } { | ||||
423 | adbd_prop | ||||
424 | }:property_service set; | ||||
425 | |||||
426 | neverallow { | ||||
Richard Fung | 0c7c267 | 2021-11-08 20:09:54 +0000 | [diff] [blame] | 427 | # Only allow init to set apexd_payload_metadata_prop |
428 | domain | ||||
429 | -init | ||||
430 | } { | ||||
431 | apexd_payload_metadata_prop | ||||
432 | }:property_service set; | ||||
433 | |||||
434 | |||||
435 | neverallow { | ||||
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 436 | # Only allow init and shell to set userspace_reboot_test_prop |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 437 | domain |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 438 | -init |
439 | -shell | ||||
440 | } { | ||||
441 | userspace_reboot_test_prop | ||||
442 | }:property_service set; | ||||
Inseob Kim | 721d921 | 2020-04-24 21:25:17 +0900 | [diff] [blame] | 443 | |
444 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 445 | domain |
Inseob Kim | 721d921 | 2020-04-24 21:25:17 +0900 | [diff] [blame] | 446 | -init |
447 | -system_server | ||||
448 | -vendor_init | ||||
449 | } { | ||||
450 | surfaceflinger_color_prop | ||||
451 | }:property_service set; | ||||
Inseob Kim | 9add20f | 2020-05-06 22:20:35 +0900 | [diff] [blame] | 452 | |
453 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 454 | domain |
Inseob Kim | 9add20f | 2020-05-06 22:20:35 +0900 | [diff] [blame] | 455 | -init |
456 | } { | ||||
457 | libc_debug_prop | ||||
458 | }:property_service set; | ||||
Inseob Kim | 36aeb16 | 2020-05-08 20:42:25 +0900 | [diff] [blame] | 459 | |
Mitch Phillips | 8cd32cd | 2022-03-22 15:59:57 -0700 | [diff] [blame] | 460 | # Allow the shell to set MTE & GWP-ASan props, so that non-root users with adb |
461 | # shell access can control the settings on their device. Allow system apps to | ||||
462 | # set MTE props, so Developer Options can set them. | ||||
Mitch Phillips | eaf1404 | 2020-12-03 17:23:06 -0800 | [diff] [blame] | 463 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 464 | domain |
Mitch Phillips | eaf1404 | 2020-12-03 17:23:06 -0800 | [diff] [blame] | 465 | -init |
466 | -shell | ||||
Florian Mayer | 39f29f7 | 2021-12-21 12:06:31 -0800 | [diff] [blame] | 467 | -system_app |
Florian Mayer | 152f832 | 2022-12-16 16:50:13 -0800 | [diff] [blame] | 468 | -system_server |
Florian Mayer | 51382a3 | 2022-09-21 14:53:48 -0700 | [diff] [blame] | 469 | -mtectrl |
Mitch Phillips | eaf1404 | 2020-12-03 17:23:06 -0800 | [diff] [blame] | 470 | } { |
471 | arm64_memtag_prop | ||||
Mitch Phillips | 8cd32cd | 2022-03-22 15:59:57 -0700 | [diff] [blame] | 472 | gwp_asan_prop |
Mitch Phillips | eaf1404 | 2020-12-03 17:23:06 -0800 | [diff] [blame] | 473 | }:property_service set; |
474 | |||||
Inseob Kim | 36aeb16 | 2020-05-08 20:42:25 +0900 | [diff] [blame] | 475 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 476 | domain |
Inseob Kim | 36aeb16 | 2020-05-08 20:42:25 +0900 | [diff] [blame] | 477 | -init |
478 | -system_server | ||||
479 | -vendor_init | ||||
480 | } zram_control_prop:property_service set; | ||||
Inseob Kim | 1337e15 | 2020-05-12 22:51:48 +0900 | [diff] [blame] | 481 | |
482 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 483 | domain |
Inseob Kim | 1337e15 | 2020-05-12 22:51:48 +0900 | [diff] [blame] | 484 | -init |
485 | -system_server | ||||
486 | -vendor_init | ||||
487 | } dalvik_runtime_prop:property_service set; | ||||
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 488 | |
489 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 490 | domain |
Inseob Kim | dc1e501 | 2020-04-27 21:13:01 +0900 | [diff] [blame] | 491 | -coredomain |
492 | -vendor_init | ||||
493 | } { | ||||
494 | usb_config_prop | ||||
495 | usb_control_prop | ||||
496 | }:property_service set; | ||||
Inseob Kim | 3b82aec | 2020-05-14 01:38:40 +0900 | [diff] [blame] | 497 | |
498 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 499 | domain |
Inseob Kim | 3b82aec | 2020-05-14 01:38:40 +0900 | [diff] [blame] | 500 | -init |
501 | -system_server | ||||
502 | } { | ||||
503 | provisioned_prop | ||||
504 | retaildemo_prop | ||||
505 | }:property_service set; | ||||
506 | |||||
507 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 508 | domain |
Inseob Kim | 3b82aec | 2020-05-14 01:38:40 +0900 | [diff] [blame] | 509 | -coredomain |
510 | -vendor_init | ||||
511 | } { | ||||
512 | provisioned_prop | ||||
513 | retaildemo_prop | ||||
514 | }:file no_rw_file_perms; | ||||
Inseob Kim | 15e5e0a | 2020-05-14 19:43:08 +0900 | [diff] [blame] | 515 | |
516 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 517 | domain |
Inseob Kim | 15e5e0a | 2020-05-14 19:43:08 +0900 | [diff] [blame] | 518 | -init |
519 | } { | ||||
520 | init_service_status_private_prop | ||||
521 | init_service_status_prop | ||||
522 | }:property_service set; | ||||
Inseob Kim | ad63170 | 2020-05-14 21:47:43 +0900 | [diff] [blame] | 523 | |
524 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 525 | domain |
Inseob Kim | ad63170 | 2020-05-14 21:47:43 +0900 | [diff] [blame] | 526 | -init |
527 | -radio | ||||
528 | -appdomain | ||||
529 | -hal_telephony_server | ||||
Inseob Kim | 285da2f | 2020-06-04 20:29:43 +0900 | [diff] [blame] | 530 | not_compatible_property(`-vendor_init') |
Inseob Kim | ad63170 | 2020-05-14 21:47:43 +0900 | [diff] [blame] | 531 | } telephony_status_prop:property_service set; |
Peiyong Lin | 37dea07 | 2020-06-03 12:20:41 -0700 | [diff] [blame] | 532 | |
533 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 534 | domain |
Peiyong Lin | 37dea07 | 2020-06-03 12:20:41 -0700 | [diff] [blame] | 535 | -init |
536 | -vendor_init | ||||
537 | } { | ||||
538 | graphics_config_prop | ||||
539 | }:property_service set; | ||||
Inseob Kim | 6ffdf1b | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 540 | |
541 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 542 | domain |
Amy Hsu | 0f352fb | 2020-06-15 17:04:12 +0800 | [diff] [blame] | 543 | -init |
Midas Chien | 0d0391f | 2020-06-17 22:13:21 +0800 | [diff] [blame] | 544 | -surfaceflinger |
Amy Hsu | 0f352fb | 2020-06-15 17:04:12 +0800 | [diff] [blame] | 545 | } { |
546 | surfaceflinger_display_prop | ||||
547 | }:property_service set; | ||||
548 | |||||
Inseob Kim | 072b014 | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 549 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 550 | domain |
Inseob Kim | 5eacf72 | 2020-07-01 01:27:49 +0900 | [diff] [blame] | 551 | -coredomain |
552 | -appdomain | ||||
Inseob Kim | 6ffdf1b | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 553 | -vendor_init |
Inseob Kim | 6ffdf1b | 2020-06-16 20:00:41 +0900 | [diff] [blame] | 554 | } packagemanager_config_prop:file no_rw_file_perms; |
Inseob Kim | 04f435c | 2020-07-07 12:46:24 +0900 | [diff] [blame] | 555 | |
556 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 557 | domain |
Inseob Kim | 04f435c | 2020-07-07 12:46:24 +0900 | [diff] [blame] | 558 | -coredomain |
559 | -vendor_init | ||||
560 | } keyguard_config_prop:file no_rw_file_perms; | ||||
Alexander Mishkovets | f0be89b | 2020-07-08 23:11:03 +0200 | [diff] [blame] | 561 | |
562 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 563 | domain |
Alexander Mishkovets | f0be89b | 2020-07-08 23:11:03 +0200 | [diff] [blame] | 564 | -init |
565 | } { | ||||
566 | localization_prop | ||||
567 | }:property_service set; | ||||
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 568 | |
569 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 570 | domain |
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 571 | -init |
572 | -vendor_init | ||||
573 | -dumpstate | ||||
574 | -system_app | ||||
575 | } oem_unlock_prop:file no_rw_file_perms; | ||||
576 | |||||
577 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 578 | domain |
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 579 | -coredomain |
580 | -vendor_init | ||||
581 | } storagemanager_config_prop:file no_rw_file_perms; | ||||
582 | |||||
583 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 584 | domain |
Inseob Kim | c80b024 | 2020-07-16 22:25:47 +0900 | [diff] [blame] | 585 | -init |
586 | -vendor_init | ||||
587 | -dumpstate | ||||
588 | -appdomain | ||||
589 | } sendbug_config_prop:file no_rw_file_perms; | ||||
Inseob Kim | c97a97c | 2020-07-20 20:26:07 +0900 | [diff] [blame] | 590 | |
591 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 592 | domain |
Inseob Kim | c97a97c | 2020-07-20 20:26:07 +0900 | [diff] [blame] | 593 | -init |
594 | -vendor_init | ||||
595 | -dumpstate | ||||
596 | -appdomain | ||||
597 | } camera_calibration_prop:file no_rw_file_perms; | ||||
Inseob Kim | 46dd4be | 2020-08-18 11:25:32 +0900 | [diff] [blame] | 598 | |
599 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 600 | domain |
Inseob Kim | 46dd4be | 2020-08-18 11:25:32 +0900 | [diff] [blame] | 601 | -init |
602 | -dumpstate | ||||
Jeff Vander Stoep | 684d25b | 2020-08-25 11:41:00 +0200 | [diff] [blame] | 603 | -hal_dumpstate_server |
Inseob Kim | 46dd4be | 2020-08-18 11:25:32 +0900 | [diff] [blame] | 604 | not_compatible_property(`-vendor_init') |
605 | } hal_dumpstate_config_prop:file no_rw_file_perms; | ||||
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 606 | |
607 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 608 | domain |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 609 | -init |
Yabin Cui | bd4c9e8 | 2021-03-18 11:15:36 -0700 | [diff] [blame] | 610 | userdebug_or_eng(`-profcollectd') |
Yabin Cui | f17fb42 | 2021-11-24 14:06:07 -0800 | [diff] [blame] | 611 | userdebug_or_eng(`-simpleperf_boot') |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 612 | userdebug_or_eng(`-traced_probes') |
Florian Mayer | 167407d | 2020-11-11 11:01:36 +0000 | [diff] [blame] | 613 | userdebug_or_eng(`-traced_perf') |
Primiano Tucci | cd45230 | 2020-10-09 09:15:10 +0100 | [diff] [blame] | 614 | } { |
615 | lower_kptr_restrict_prop | ||||
616 | }:property_service set; | ||||
Janis Danisevskis | 202e863 | 2020-10-23 11:16:34 -0700 | [diff] [blame] | 617 | |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 618 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 619 | domain |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 620 | -init |
621 | } zygote_wrap_prop:property_service set; | ||||
622 | |||||
623 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 624 | domain |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 625 | -init |
626 | } verity_status_prop:property_service set; | ||||
627 | |||||
628 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 629 | domain |
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 630 | -init |
Jeongik Cha | 6cb91a0 | 2023-11-15 22:51:14 +0900 | [diff] [blame] | 631 | -vendor_init |
632 | } setupwizard_mode_prop:property_service set; | ||||
633 | |||||
634 | neverallow { | ||||
635 | domain | ||||
636 | -init | ||||
Inseob Kim | d5a0448 | 2020-11-05 22:17:26 +0900 | [diff] [blame] | 637 | } setupwizard_prop:property_service set; |
Inseob Kim | 9985566 | 2020-11-12 22:21:51 +0900 | [diff] [blame] | 638 | |
639 | # ro.product.property_source_order is useless after initialization of ro.product.* props. | ||||
640 | # So making it accessible only from init and vendor_init. | ||||
641 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 642 | domain |
Inseob Kim | 9985566 | 2020-11-12 22:21:51 +0900 | [diff] [blame] | 643 | -init |
644 | -dumpstate | ||||
645 | -vendor_init | ||||
646 | } build_config_prop:file no_rw_file_perms; | ||||
Inseob Kim | 0cef0fe | 2020-11-17 13:54:52 +0900 | [diff] [blame] | 647 | |
648 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 649 | domain |
Inseob Kim | 0cef0fe | 2020-11-17 13:54:52 +0900 | [diff] [blame] | 650 | -init |
651 | -shell | ||||
652 | } sqlite_log_prop:property_service set; | ||||
653 | |||||
654 | neverallow { | ||||
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 655 | domain |
Inseob Kim | 0cef0fe | 2020-11-17 13:54:52 +0900 | [diff] [blame] | 656 | -coredomain |
657 | -appdomain | ||||
658 | } sqlite_log_prop:file no_rw_file_perms; | ||||
Inseob Kim | 4c110ff | 2020-11-26 21:50:23 +0900 | [diff] [blame] | 659 | |
Inseob Kim | 5c011e5 | 2021-01-14 04:08:16 +0000 | [diff] [blame] | 660 | neverallow { |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 661 | domain |
Inseob Kim | 5c011e5 | 2021-01-14 04:08:16 +0000 | [diff] [blame] | 662 | -init |
663 | } default_prop:property_service set; | ||||
664 | |||||
Inseob Kim | 4c110ff | 2020-11-26 21:50:23 +0900 | [diff] [blame] | 665 | # Only one of system_property_type and vendor_property_type can be assigned. |
666 | # Property types having both attributes won't be accessible from anywhere. | ||||
667 | neverallow domain system_and_vendor_property_type:{file property_service} *; | ||||
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 668 | |
669 | neverallow { | ||||
Seth Moore | 8bfdd82 | 2022-04-20 10:10:49 -0700 | [diff] [blame] | 670 | domain |
671 | -init | ||||
Seth Moore | d3bd686 | 2023-02-24 11:50:51 -0800 | [diff] [blame] | 672 | -shell |
Vikram Gaur | 0139008 | 2023-03-16 01:41:29 +0000 | [diff] [blame] | 673 | -rkpdapp |
Seth Moore | 8bfdd82 | 2022-04-20 10:10:49 -0700 | [diff] [blame] | 674 | } remote_prov_prop:property_service set; |
675 | |||||
676 | neverallow { | ||||
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 677 | # Only allow init and shell to set rollback_test_prop |
Inseob Kim | 85acf6e | 2021-03-10 10:42:23 +0900 | [diff] [blame] | 678 | domain |
JW Wang | 0f8cf04 | 2021-02-24 14:29:06 +0800 | [diff] [blame] | 679 | -init |
680 | -shell | ||||
681 | } rollback_test_prop:property_service set; | ||||
Yi Kong | 9b65845 | 2021-03-22 22:02:22 +0800 | [diff] [blame] | 682 | |
683 | neverallow { | ||||
Jooyung Han | ccfb0ef | 2022-07-07 15:42:39 +0900 | [diff] [blame] | 684 | domain |
685 | -init | ||||
Jooyung Han | ccfb0ef | 2022-07-07 15:42:39 +0900 | [diff] [blame] | 686 | -apexd |
687 | } ctl_apex_load_prop:property_service set; | ||||
688 | |||||
689 | neverallow { | ||||
690 | domain | ||||
691 | -coredomain | ||||
692 | -init | ||||
693 | -dumpstate | ||||
694 | -apexd | ||||
Deyao Ren | 3fab00f | 2022-08-30 19:14:51 +0000 | [diff] [blame] | 695 | } ctl_apex_load_prop:file no_rw_file_perms; |
Jooyung Han | ccfb0ef | 2022-07-07 15:42:39 +0900 | [diff] [blame] | 696 | |
697 | neverallow { | ||||
Deyao Ren | 7848d3a | 2022-09-01 22:20:10 +0000 | [diff] [blame] | 698 | domain |
699 | -init | ||||
700 | -apexd | ||||
701 | } apex_ready_prop:property_service set; | ||||
702 | |||||
703 | neverallow { | ||||
704 | domain | ||||
705 | -coredomain | ||||
706 | -dumpstate | ||||
707 | -apexd | ||||
Jooyung Han | cae2368 | 2022-09-02 16:26:27 +0900 | [diff] [blame] | 708 | -vendor_init |
Deyao Ren | 7848d3a | 2022-09-01 22:20:10 +0000 | [diff] [blame] | 709 | } apex_ready_prop:file no_rw_file_perms; |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 710 | |
711 | neverallow { | ||||
712 | # Only allow init and profcollectd to access profcollectd_node_id_prop | ||||
713 | domain | ||||
714 | -init | ||||
715 | -dumpstate | ||||
716 | -profcollectd | ||||
717 | } profcollectd_node_id_prop:file r_file_perms; | ||||
718 | |||||
Jiyong Park | c4f84bc | 2022-09-18 23:09:53 +0900 | [diff] [blame] | 719 | neverallow { |
720 | domain | ||||
721 | -init | ||||
722 | } log_file_logger_prop:property_service set; | ||||
Avichal Rakesh | a12d310 | 2023-01-23 23:46:42 -0800 | [diff] [blame] | 723 | |
724 | neverallow { | ||||
725 | domain | ||||
726 | -init | ||||
727 | -vendor_init | ||||
728 | } usb_uvc_enabled_prop:property_service set; | ||||
Avichal Rakesh | e2cb0f2 | 2023-02-01 15:56:40 -0800 | [diff] [blame] | 729 | |
730 | # Disallow non system apps from reading ro.usb.uvc.enabled | ||||
731 | neverallow { | ||||
732 | appdomain | ||||
733 | -system_app | ||||
734 | -device_as_webcam | ||||
735 | } usb_uvc_enabled_prop:file no_rw_file_perms; | ||||
Andrea Zilio | 32ab868 | 2023-11-30 21:09:45 +0000 | [diff] [blame] | 736 | |
737 | neverallow { | ||||
738 | domain | ||||
739 | -init | ||||
740 | -vendor_init | ||||
741 | } pm_archiving_enabled_prop:property_service set; | ||||
742 |