blob: 1eb2d70c96dd2e1698e7e3de2823a4d02c031351 [file] [log] [blame]
Stephen Smalley124720a2012-04-04 10:11:16 -04001##########################
2# property service keys
3#
4#
Stephen Smalleyfee49152014-06-19 10:27:02 -04005net.rmnet u:object_r:net_radio_prop:s0
6net.gprs u:object_r:net_radio_prop:s0
7net.ppp u:object_r:net_radio_prop:s0
8net.qmi u:object_r:net_radio_prop:s0
9net.lte u:object_r:net_radio_prop:s0
10net.cdma u:object_r:net_radio_prop:s0
Nick Kralevich4e404292017-02-09 16:08:11 -080011net.dns u:object_r:net_dns_prop:s0
Jaekyun Seokf9d27882018-01-12 10:19:48 +090012sys.usb.config u:object_r:system_radio_prop:s0
Stephen Smalleyfee49152014-06-19 10:27:02 -040013ril. u:object_r:radio_prop:s0
Tom Cherryf89847a2016-01-11 13:06:25 -080014ro.ril. u:object_r:radio_prop:s0
Stephen Smalley730957a2012-04-04 16:01:19 -040015gsm. u:object_r:radio_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040016persist.radio u:object_r:radio_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040017
18net. u:object_r:system_prop:s0
19dev. u:object_r:system_prop:s0
Tom Cherryf89847a2016-01-11 13:06:25 -080020ro.runtime. u:object_r:system_prop:s0
Alex Klyubin062236a2016-12-27 14:05:46 -080021ro.runtime.firstboot u:object_r:firstboot_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040022hw. u:object_r:system_prop:s0
Tom Cherryf89847a2016-01-11 13:06:25 -080023ro.hw. u:object_r:system_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040024sys. u:object_r:system_prop:s0
Ryan Savitski52b3d312020-01-14 18:20:06 +000025sys.init.perf_lsm_hooks u:object_r:init_perf_lsm_hooks_prop:s0
Alex Lightb7ebb322016-06-22 15:47:09 -070026sys.cppreopt u:object_r:cppreopt_prop:s0
Yifan Hong18ade862019-03-14 15:45:03 -070027sys.lpdumpd u:object_r:lpdumpd_prop:s0
Nick Kralevich7914a472013-06-28 20:15:37 -070028sys.powerctl u:object_r:powerctl_prop:s0
Nick Kralevichcaefbd72015-04-23 19:42:25 -070029sys.usb.ffs. u:object_r:ffs_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040030service. u:object_r:system_prop:s0
Stephen Smalleyfee49152014-06-19 10:27:02 -040031dhcp. u:object_r:dhcp_prop:s0
Paul Jensen97a2cfd2014-06-18 09:20:36 -040032dhcp.bt-pan.result u:object_r:pan_result_prop:s0
Alex Klyubin3123b1e2013-05-06 10:18:27 -070033bluetooth. u:object_r:bluetooth_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040034
Nick Kralevichdd1ec6d2013-11-01 10:45:03 -070035debug. u:object_r:debug_prop:s0
Nick Kralevich116a20f2014-02-05 16:36:25 -080036debug.db. u:object_r:debuggerd_prop:s0
Felipe Leme83fd8a52015-12-01 18:03:05 -080037dumpstate. u:object_r:dumpstate_prop:s0
Felipe Lemea5a80722016-09-21 10:44:11 -070038dumpstate.options u:object_r:dumpstate_options_prop:s0
Daniel Norman4eca8192019-07-25 11:29:17 -070039init.svc_debug_pid. u:object_r:init_svc_debug_prop:s0
Mark Salyzyn275ea122018-08-07 16:03:47 -070040llk. u:object_r:llkd_prop:s0
41khungtask. u:object_r:llkd_prop:s0
42ro.llk. u:object_r:llkd_prop:s0
43ro.khungtask. u:object_r:llkd_prop:s0
mukesh agrawal84cfde22016-04-15 11:10:06 -070044log. u:object_r:log_prop:s0
Mark Salyzyn44c98bb2016-06-06 12:10:00 -070045log.tag u:object_r:log_tag_prop:s0
mukesh agrawale651f6f2016-04-15 11:10:39 -070046log.tag.WifiHAL u:object_r:wifi_log_prop:s0
Daniel Micay38ac77e2016-05-31 16:01:08 -040047security.perf_harden u:object_r:shell_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040048service.adb.root u:object_r:shell_prop:s0
49service.adb.tcp.port u:object_r:shell_prop:s0
Joshua Duong18988fc2020-02-12 10:18:10 -080050service.adb.tls.port u:object_r:adbd_prop:s0
51persist.adb.wifi. u:object_r:adbd_prop:s0
52persist.adb.tls_server.enable u:object_r:system_adbd_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040053
William Robertse2ad3182012-11-27 17:34:54 -080054persist.audio. u:object_r:audio_prop:s0
Andre Eisenbacheebdb472016-02-08 15:39:00 -080055persist.bluetooth. u:object_r:bluetooth_prop:s0
George Changdb1dbd92020-01-07 00:25:11 +080056persist.nfc_cfg. u:object_r:nfc_prop:s0
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +090057persist.debug. u:object_r:persist_debug_prop:s0
Mark Salyzyn9e7bbf62014-06-12 12:47:22 -070058persist.logd. u:object_r:logd_prop:s0
Jaekyun Seoke4971452017-10-19 16:54:49 +090059ro.logd. u:object_r:logd_prop:s0
Rubin Xu0c8286f2016-01-04 15:20:45 +000060persist.logd.security u:object_r:device_logging_prop:s0
Mark Salyzyn68d67a02016-06-06 12:18:46 -070061persist.logd.logpersistd u:object_r:logpersistd_logging_prop:s0
Mark Salyzyn91e7ac92016-07-08 08:41:08 -070062logd.logpersistd u:object_r:logpersistd_logging_prop:s0
Mark Salyzyn44c98bb2016-06-06 12:10:00 -070063persist.log.tag u:object_r:log_tag_prop:s0
Mark Salyzynd1435602016-02-04 10:55:43 -080064persist.mmc. u:object_r:mmc_prop:s0
Lorenzo Colitti5b3efd32017-07-11 09:43:19 +090065persist.netd.stable_secret u:object_r:netd_stable_secret_prop:s0
Gavin Corkeryb2f34bf2019-10-09 17:09:48 +010066persist.pm.mock-upgrade u:object_r:mock_ota_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040067persist.sys. u:object_r:system_prop:s0
Sami Tolvanen9c168712016-02-05 15:42:32 -080068persist.sys.safemode u:object_r:safemode_prop:s0
Tao Baoa999e392019-06-14 17:00:16 -070069persist.sys.theme u:object_r:theme_prop:s0
Hung-ying Tyan565384d2019-04-26 16:14:52 +080070persist.sys.fflag.override.settings_dynamic_system u:object_r:dynamic_system_prop:s0
dcashman3e8d1bf2016-03-02 16:14:17 -080071ro.sys.safemode u:object_r:safemode_prop:s0
Sami Tolvanen9c168712016-02-05 15:42:32 -080072persist.sys.audit_safemode u:object_r:safemode_prop:s0
David Sehrfa67ec42019-11-25 22:03:59 +000073persist.sys.dalvik.jvmtiagent u:object_r:system_jvmti_agent_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040074persist.service. u:object_r:system_prop:s0
Alex Klyubin3123b1e2013-05-06 10:18:27 -070075persist.service.bdroid. u:object_r:bluetooth_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -040076persist.security. u:object_r:system_prop:s0
Lalit Maganti673b4db2018-04-20 19:09:45 +010077persist.traced.enable u:object_r:traced_enabled_prop:s0
Florian Mayera769f0f2019-03-13 11:22:23 -070078traced.lazy. u:object_r:traced_lazy_prop:s0
Florian Mayerc32ca902018-12-10 16:20:20 +000079persist.heapprofd.enable u:object_r:heapprofd_enabled_prop:s0
Ryan Savitskicfd76712020-02-19 14:59:17 +000080persist.traced_perf.enable u:object_r:traced_perf_enabled_prop:s0
Jason Monk0e1cbf52016-11-09 15:19:05 -050081persist.vendor.overlay. u:object_r:overlay_prop:s0
82ro.boot.vendor.overlay. u:object_r:overlay_prop:s0
Nick Kralevichbb9a3882016-12-13 19:50:36 -080083ro.boottime. u:object_r:boottime_prop:s0
Alex Klyubin20151072016-12-20 15:31:37 -080084ro.serialno u:object_r:serialno_prop:s0
Alex Klyubin6e4508e2016-12-27 18:05:46 -080085ro.boot.btmacaddr u:object_r:bluetooth_prop:s0
Alex Klyubin20151072016-12-20 15:31:37 -080086ro.boot.serialno u:object_r:serialno_prop:s0
Alex Klyubin6e4508e2016-12-27 18:05:46 -080087ro.bt. u:object_r:bluetooth_prop:s0
Mark Salyzyn006c2e92017-08-14 14:25:10 -070088ro.boot.bootreason u:object_r:bootloader_boot_reason_prop:s0
89persist.sys.boot.reason u:object_r:last_boot_reason_prop:s0
90sys.boot.reason u:object_r:system_boot_reason_prop:s0
Mark Salyzyna1bce772018-06-05 09:41:59 -070091sys.boot.reason.last u:object_r:last_boot_reason_prop:s0
Calin Juravle53165482017-11-16 05:28:14 +000092pm. u:object_r:pm_prop:s0
Mark Salyzyn3443caf2015-10-24 16:20:18 -070093test.sys.boot.reason u:object_r:test_boot_reason_prop:s0
Nikita Ioffe3bd53a92020-03-12 14:45:00 +000094test.userspace_reboot.requested u:object_r:userspace_reboot_test_prop:s0
Suren Baghdasaryanc8ed8552018-07-24 17:04:18 -070095sys.lmk. u:object_r:system_lmk_prop:s0
Primiano Tucci8da4e4f2019-02-01 22:52:02 +000096sys.trace. u:object_r:system_trace_prop:s0
William Roberts9e70c8b2013-01-23 14:02:43 -080097
Rubin Xu0c8286f2016-01-04 15:20:45 +000098# Boolean property set by system server upon boot indicating
Rubin Xu0b303112020-02-17 11:00:13 +000099# if device is fully owned by organization instead of being
100# a personal device.
101ro.organization_owned u:object_r:device_logging_prop:s0
Rubin Xu0c8286f2016-01-04 15:20:45 +0000102
William Roberts9e70c8b2013-01-23 14:02:43 -0800103# selinux non-persistent properties
Jeff Sharkey7617cd42015-06-09 11:01:04 -0700104selinux.restorecon_recursive u:object_r:restorecon_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -0400105
106# default property context
107* u:object_r:default_prop:s0
108
109# data partition encryption properties
110vold. u:object_r:vold_prop:s0
Tom Cherryf89847a2016-01-11 13:06:25 -0800111ro.crypto. u:object_r:vold_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -0400112
Nick Kralevichc48971f2014-11-18 14:36:23 -0800113# ro.build.fingerprint is either set in /system/build.prop, or is
114# set at runtime by system_server.
Tom Cherryf89847a2016-01-11 13:06:25 -0800115ro.build.fingerprint u:object_r:fingerprint_prop:s0
Nick Kralevichc48971f2014-11-18 14:36:23 -0800116
Keun-young Parkf67c3462017-02-28 19:21:31 -0800117ro.persistent_properties.ready u:object_r:persistent_properties_ready_prop:s0
118
Stephen Smalley124720a2012-04-04 10:11:16 -0400119# ctl properties
Robert Craig4b3893f2014-02-18 13:24:26 -0500120ctl.bootanim u:object_r:ctl_bootanim_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -0400121ctl.dumpstate u:object_r:ctl_dumpstate_prop:s0
Robert Craig4b3893f2014-02-18 13:24:26 -0500122ctl.fuse_ u:object_r:ctl_fuse_prop:s0
123ctl.mdnsd u:object_r:ctl_mdnsd_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -0400124ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
Stephen Smalley1c0c0102014-03-06 14:47:22 -0500125ctl.bugreport u:object_r:ctl_bugreport_prop:s0
Jeff Vander Stoep8b015f92015-04-24 14:39:16 -0700126ctl.console u:object_r:ctl_console_prop:s0
Stephen Smalley124720a2012-04-04 10:11:16 -0400127ctl. u:object_r:ctl_default_prop:s0
Martijn Coenen9ac7df22014-09-25 15:13:41 -0700128
Tom Cherry7b8be352018-05-03 17:00:16 -0700129# Don't allow blind access to all services
130ctl.sigstop_on$ u:object_r:ctl_sigstop_prop:s0
131ctl.sigstop_off$ u:object_r:ctl_sigstop_prop:s0
132ctl.start$ u:object_r:ctl_start_prop:s0
133ctl.stop$ u:object_r:ctl_stop_prop:s0
134ctl.restart$ u:object_r:ctl_restart_prop:s0
135ctl.interface_start$ u:object_r:ctl_interface_start_prop:s0
136ctl.interface_stop$ u:object_r:ctl_interface_stop_prop:s0
137ctl.interface_restart$ u:object_r:ctl_interface_restart_prop:s0
138
Samuel Ha22f98192018-06-26 19:52:21 +0000139 # Restrict access to starting/stopping adbd
140ctl.start$adbd u:object_r:ctl_adbd_prop:s0
141ctl.stop$adbd u:object_r:ctl_adbd_prop:s0
142ctl.restart$adbd u:object_r:ctl_adbd_prop:s0
143
David Anderson64bbf052019-02-27 18:31:11 -0800144# Restrict access to starting/stopping gsid.
145ctl.start$gsid u:object_r:ctl_gsid_prop:s0
146ctl.stop$gsid u:object_r:ctl_gsid_prop:s0
147ctl.restart$gsid u:object_r:ctl_gsid_prop:s0
148
Jiyong Park6e823dd2019-06-13 09:45:05 +0900149# Restrict access to stopping apexd.
150ctl.stop$apexd u:object_r:ctl_apexd_prop:s0
151
Wei Wang046c5102019-07-17 09:39:33 -0700152# Restrict access to restart dumpstate
153ctl.interface_restart$android.hardware.dumpstate u:object_r:ctl_dumpstate_prop:s0
154
Martijn Coenen9ac7df22014-09-25 15:13:41 -0700155# NFC properties
156nfc. u:object_r:nfc_prop:s0
Stephen Smalley54e9bc42014-09-04 08:44:49 -0400157
158# These properties are not normally set by processes other than init.
159# They are only distinguished here for setting by qemu-props on the
160# emulator/goldfish.
161config. u:object_r:config_prop:s0
Tom Cherryf89847a2016-01-11 13:06:25 -0800162ro.config. u:object_r:config_prop:s0
Stephen Smalley54e9bc42014-09-04 08:44:49 -0400163dalvik. u:object_r:dalvik_prop:s0
Tom Cherryf89847a2016-01-11 13:06:25 -0800164ro.dalvik. u:object_r:dalvik_prop:s0
Christopher Wileybf18eca2016-06-29 11:28:20 -0700165
166# Shared between system server and wificond
dianlujitaobf52f192019-12-29 23:17:07 +0800167wifi. u:object_r:wifi_prop:s0
Christopher Wileybf18eca2016-06-29 11:28:20 -0700168wlan. u:object_r:wifi_prop:s0
Iliyan Malchev96031a82016-09-19 15:23:41 -0700169
Dan Cashman91d398d2017-09-26 12:58:29 -0700170# Lowpan properties
171lowpan. u:object_r:lowpan_prop:s0
172ro.lowpan. u:object_r:lowpan_prop:s0
173
Florian Mayer0f3decf2018-11-08 13:58:13 +0000174# heapprofd properties
175heapprofd. u:object_r:heapprofd_prop:s0
176
Iliyan Malchev96031a82016-09-19 15:23:41 -0700177# hwservicemanager properties
178hwservicemanager. u:object_r:hwservicemanager_prop:s0
Jaekyun Seoke4971452017-10-19 16:54:49 +0900179
Jaekyun Seokafca82a2018-01-18 13:25:28 +0900180# Common default properties for vendor and odm.
181init.svc.odm. u:object_r:vendor_default_prop:s0
Jaekyun Seoke4971452017-10-19 16:54:49 +0900182init.svc.vendor. u:object_r:vendor_default_prop:s0
183ro.hardware. u:object_r:vendor_default_prop:s0
Jaekyun Seokafca82a2018-01-18 13:25:28 +0900184ro.odm. u:object_r:vendor_default_prop:s0
Jaekyun Seoke4971452017-10-19 16:54:49 +0900185ro.vendor. u:object_r:vendor_default_prop:s0
Jaekyun Seokafca82a2018-01-18 13:25:28 +0900186odm. u:object_r:vendor_default_prop:s0
187persist.odm. u:object_r:vendor_default_prop:s0
Jaekyun Seoke4971452017-10-19 16:54:49 +0900188persist.vendor. u:object_r:vendor_default_prop:s0
189vendor. u:object_r:vendor_default_prop:s0
Tom Cherry30dd7112018-10-23 13:25:05 -0700190# ro.boot. properties are set based on kernel commandline arguments, which are vendor owned.
191ro.boot. u:object_r:exported2_default_prop:s0
Neil Fullerb794ad02018-06-25 15:36:51 +0100192
193# Properties that relate to time / time zone detection behavior.
194persist.time. u:object_r:time_prop:s0
Hongyi Zhanga6f98922018-10-25 20:09:55 -0700195
196# Properties that relate to server configurable flags
Hongyi Zhangb965e3c2018-11-08 16:46:19 -0800197device_config.reset_performed u:object_r:device_config_reset_performed_prop:s0
Ng Zhi Anc5bf4a32019-01-17 13:30:05 -0800198persist.device_config.activity_manager_native_boot. u:object_r:device_config_activity_manager_native_boot_prop:s0
Hongyi Zhanga6f98922018-10-25 20:09:55 -0700199persist.device_config.attempted_boot_count u:object_r:device_config_boot_count_prop:s0
Siarhei Vishniakouc0c91552019-01-14 14:18:38 -0800200persist.device_config.input_native_boot. u:object_r:device_config_input_native_boot_prop:s0
chenbrucee3d625b2018-12-27 18:01:25 +0800201persist.device_config.netd_native. u:object_r:device_config_netd_native_prop:s0
Mathieu Chartier669cef82019-01-29 09:57:11 -0800202persist.device_config.runtime_native. u:object_r:device_config_runtime_native_prop:s0
Mathieu Chartier0327d102019-02-01 13:43:11 -0800203persist.device_config.runtime_native_boot. u:object_r:device_config_runtime_native_boot_prop:s0
Dongwon Kang523c7462019-01-30 15:28:31 -0800204persist.device_config.media_native. u:object_r:device_config_media_native_prop:s0
shafik55a54d32019-09-23 15:14:47 +0100205persist.device_config.storage_native_boot. u:object_r:device_config_storage_native_boot_prop:s0
Valerie Hau7b2a2df2020-01-16 10:52:34 -0800206persist.device_config.window_manager_native_boot. u:object_r:device_config_window_manager_native_boot_prop:s0
Hongyi Zhang7f400c62020-02-27 14:05:05 -0800207persist.device_config.configuration. u:object_r:device_config_configuration_prop:s0
Jiyong Parkb14c1a92018-11-08 11:24:34 +0900208
Hector Dearman0756dcc2019-04-05 16:41:30 +0100209# Properties that relate to legacy server configurable flags
210persist.device_config.global_settings.sys_traced u:object_r:device_config_sys_traced_prop:s0
211
Jiyong Parkb14c1a92018-11-08 11:24:34 +0900212apexd. u:object_r:apexd_prop:s0
Martijn Coenen97650f52019-01-09 12:04:03 +0100213persist.apexd. u:object_r:apexd_prop:s0
Joel Fernandesb76a6392019-01-11 08:32:45 -0500214
215bpf.progs_loaded u:object_r:bpf_progs_loaded_prop:s0
David Anderson8fe3c742019-02-07 13:14:20 -0800216
217gsid. u:object_r:gsid_prop:s0
218ro.gsid. u:object_r:gsid_prop:s0
Przemyslaw Szczepaniak62a22ce2019-04-02 15:34:16 +0100219
220# Property for disabling NNAPI vendor extensions on product image (used on GSI /product image,
221# which can't use NNAPI vendor extensions).
222ro.nnapi.extensions.deny_on_product u:object_r:nnapi_ext_deny_product_prop:s0
Tom Cherry2a67e942019-06-18 09:53:51 -0700223
224# Property that is set once ueventd finishes cold boot.
225ro.cold_boot_done u:object_r:cold_boot_done_prop:s0
Yifan Hong1145be12019-07-08 10:57:46 -0700226
227# Charger properties
228ro.charger. u:object_r:charger_prop:s0
Yifan Hong20010d12019-07-25 13:28:19 -0700229
230# Virtual A/B properties
231ro.virtual_ab.enabled u:object_r:virtual_ab_prop:s0
232ro.virtual_ab.retrofit u:object_r:virtual_ab_prop:s0
Tianjie Xuf5ddc042019-11-14 14:18:40 -0800233
234# Property to set/clear the warm reset flag after an OTA update.
235ota.warm_reset u:object_r:ota_prop:s0
Anton Hanssone8225452019-11-25 13:10:10 +0000236
237# Module properties
Anton Hanssonb8413352020-01-06 17:29:13 +0000238com.android.sdkext. u:object_r:module_sdkextensions_prop:s0
239persist.com.android.sdkext. u:object_r:module_sdkextensions_prop:s0
Nikita Ioffe44f5ffc2020-02-07 00:10:29 +0000240
241# Userspace reboot properties
242sys.userspace_reboot.log. u:object_r:userspace_reboot_log_prop:s0
243persist.sys.userspace_reboot.log. u:object_r:userspace_reboot_log_prop:s0
David Stevens3942fe12020-01-20 14:11:07 +0900244
245# Integer property which is used in libgui to configure the number of frames
246# tracked by buffer queue's frame event timing history. The property is set
247# by devices with video decoding pipelines long enough to overflow the default
248# history size.
249ro.lib_gui.frame_event_history_size u:object_r:bq_config_prop:s0