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