Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 1 | ########################################### |
| 2 | # Root |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 3 | / u:object_r:rootfs:s0 |
Colin Cross | 92b9aa0 | 2012-12-20 15:26:02 -0800 | [diff] [blame] | 4 | |
| 5 | # Data files |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 6 | /adb_keys u:object_r:adb_keys_file:s0 |
| 7 | /build\.prop u:object_r:rootfs:s0 |
| 8 | /default\.prop u:object_r:rootfs:s0 |
| 9 | /fstab\..* u:object_r:rootfs:s0 |
| 10 | /init\..* u:object_r:rootfs:s0 |
| 11 | /res(/.*)? u:object_r:rootfs:s0 |
| 12 | /selinux_version u:object_r:rootfs:s0 |
| 13 | /ueventd\..* u:object_r:rootfs:s0 |
| 14 | /verity_key u:object_r:rootfs:s0 |
Colin Cross | 92b9aa0 | 2012-12-20 15:26:02 -0800 | [diff] [blame] | 15 | |
| 16 | # Executables |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 17 | /charger u:object_r:rootfs:s0 |
| 18 | /init u:object_r:init_exec:s0 |
Tom Cherry | 2faf485 | 2018-07-20 15:10:38 -0700 | [diff] [blame] | 19 | /system/bin/init u:object_r:init_exec:s0 |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 20 | /sbin(/.*)? u:object_r:rootfs:s0 |
Colin Cross | 92b9aa0 | 2012-12-20 15:26:02 -0800 | [diff] [blame] | 21 | |
Jaesoo Lee | d363b0f | 2017-03-02 17:02:29 +0900 | [diff] [blame] | 22 | # For kernel modules |
| 23 | /lib(/.*)? u:object_r:rootfs:s0 |
| 24 | |
Colin Cross | 92b9aa0 | 2012-12-20 15:26:02 -0800 | [diff] [blame] | 25 | # Empty directories |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 26 | /lost\+found u:object_r:rootfs:s0 |
| 27 | /acct u:object_r:cgroup:s0 |
| 28 | /config u:object_r:rootfs:s0 |
| 29 | /mnt u:object_r:tmpfs:s0 |
Alex Deymo | a52b561 | 2016-03-01 16:14:45 -0800 | [diff] [blame] | 30 | /postinstall u:object_r:postinstall_mnt_dir:s0 |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 31 | /proc u:object_r:rootfs:s0 |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 32 | /sys u:object_r:sysfs:s0 |
| 33 | |
| 34 | # Symlinks |
Elliott Hughes | 2b42fe4 | 2017-12-06 12:03:45 -0800 | [diff] [blame] | 35 | /bin u:object_r:rootfs:s0 |
Nick Kralevich | d314376 | 2016-11-19 12:13:02 -0800 | [diff] [blame] | 36 | /bugreports u:object_r:rootfs:s0 |
Daniel Rosenberg | e6b6744 | 2015-07-23 21:08:32 -0700 | [diff] [blame] | 37 | /d u:object_r:rootfs:s0 |
| 38 | /etc u:object_r:rootfs:s0 |
| 39 | /sdcard u:object_r:rootfs:s0 |
Colin Cross | 92b9aa0 | 2012-12-20 15:26:02 -0800 | [diff] [blame] | 40 | |
| 41 | # SELinux policy files |
Tom Cherry | ecc4868 | 2018-01-22 14:31:50 -0800 | [diff] [blame] | 42 | /vendor_file_contexts u:object_r:file_contexts_file:s0 |
Sandeep Patil | c9cf736 | 2017-03-24 15:02:13 -0700 | [diff] [blame] | 43 | /nonplat_file_contexts u:object_r:file_contexts_file:s0 |
| 44 | /plat_file_contexts u:object_r:file_contexts_file:s0 |
Sandeep Patil | 136caa1 | 2017-03-27 11:39:16 -0700 | [diff] [blame] | 45 | /mapping_sepolicy\.cil u:object_r:sepolicy_file:s0 |
| 46 | /nonplat_sepolicy\.cil u:object_r:sepolicy_file:s0 |
| 47 | /plat_sepolicy\.cil u:object_r:sepolicy_file:s0 |
Sandeep Patil | 54a4200 | 2017-03-24 10:22:14 -0700 | [diff] [blame] | 48 | /plat_property_contexts u:object_r:property_contexts_file:s0 |
| 49 | /nonplat_property_contexts u:object_r:property_contexts_file:s0 |
Bowgo Tsai | afbcf21 | 2018-02-05 17:34:52 +0800 | [diff] [blame] | 50 | /vendor_property_contexts u:object_r:property_contexts_file:s0 |
Sandeep Patil | 1e14996 | 2017-03-27 10:57:07 -0700 | [diff] [blame] | 51 | /seapp_contexts u:object_r:seapp_contexts_file:s0 |
| 52 | /nonplat_seapp_contexts u:object_r:seapp_contexts_file:s0 |
Bowgo Tsai | afbcf21 | 2018-02-05 17:34:52 +0800 | [diff] [blame] | 53 | /vendor_seapp_contexts u:object_r:seapp_contexts_file:s0 |
Sandeep Patil | 1e14996 | 2017-03-27 10:57:07 -0700 | [diff] [blame] | 54 | /plat_seapp_contexts u:object_r:seapp_contexts_file:s0 |
Sandeep Patil | 136caa1 | 2017-03-27 11:39:16 -0700 | [diff] [blame] | 55 | /sepolicy u:object_r:sepolicy_file:s0 |
Sandeep Patil | 939d16b | 2017-03-24 12:24:43 -0700 | [diff] [blame] | 56 | /plat_service_contexts u:object_r:service_contexts_file:s0 |
Martijn Coenen | 3ea47b9 | 2017-04-07 16:14:43 -0700 | [diff] [blame] | 57 | /plat_hwservice_contexts u:object_r:hwservice_contexts_file:s0 |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 58 | /nonplat_service_contexts u:object_r:nonplat_service_contexts_file:s0 |
Bowgo Tsai | afbcf21 | 2018-02-05 17:34:52 +0800 | [diff] [blame] | 59 | # Use nonplat_service_contexts_file to allow servicemanager to read it |
| 60 | # on non full-treble devices. |
| 61 | /vendor_service_contexts u:object_r:nonplat_service_contexts_file:s0 |
Martijn Coenen | 3ea47b9 | 2017-04-07 16:14:43 -0700 | [diff] [blame] | 62 | /nonplat_hwservice_contexts u:object_r:hwservice_contexts_file:s0 |
Bowgo Tsai | afbcf21 | 2018-02-05 17:34:52 +0800 | [diff] [blame] | 63 | /vendor_hwservice_contexts u:object_r:hwservice_contexts_file:s0 |
Martijn Coenen | 6676c23 | 2017-03-31 17:29:53 -0700 | [diff] [blame] | 64 | /vndservice_contexts u:object_r:vndservice_contexts_file:s0 |
Colin Cross | 92b9aa0 | 2012-12-20 15:26:02 -0800 | [diff] [blame] | 65 | |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 66 | ########################## |
| 67 | # Devices |
| 68 | # |
| 69 | /dev(/.*)? u:object_r:device:s0 |
Stephen Smalley | d9b8ef4 | 2014-01-16 08:47:34 -0500 | [diff] [blame] | 70 | /dev/akm8973.* u:object_r:sensors_device:s0 |
| 71 | /dev/accelerometer u:object_r:sensors_device:s0 |
Nick Kralevich | 84ed890 | 2014-06-03 17:01:10 -0700 | [diff] [blame] | 72 | /dev/adf[0-9]* u:object_r:graphics_device:s0 |
| 73 | /dev/adf-interface[0-9]*\.[0-9]* u:object_r:graphics_device:s0 |
| 74 | /dev/adf-overlay-engine[0-9]*\.[0-9]* u:object_r:graphics_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 75 | /dev/alarm u:object_r:alarm_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 76 | /dev/ashmem u:object_r:ashmem_device:s0 |
| 77 | /dev/audio.* u:object_r:audio_device:s0 |
| 78 | /dev/binder u:object_r:binder_device:s0 |
| 79 | /dev/block(/.*)? u:object_r:block_device:s0 |
Stephen Smalley | 273d7ea | 2014-09-30 11:37:51 -0400 | [diff] [blame] | 80 | /dev/block/dm-[0-9]+ u:object_r:dm_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 81 | /dev/block/loop[0-9]* u:object_r:loop_device:s0 |
Jeff Sharkey | f063f46 | 2015-03-27 11:25:39 -0700 | [diff] [blame] | 82 | /dev/block/vold/.+ u:object_r:vold_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 83 | /dev/block/ram[0-9]* u:object_r:ram_device:s0 |
William Roberts | 5bc4a95 | 2015-08-25 12:06:39 -0700 | [diff] [blame] | 84 | /dev/block/zram[0-9]* u:object_r:ram_device:s0 |
Robert Craig | 65d4f44 | 2013-03-27 06:30:25 -0400 | [diff] [blame] | 85 | /dev/bus/usb(.*)? u:object_r:usb_device:s0 |
Jeff Vander Stoep | 0474e7c | 2016-06-13 16:05:34 -0700 | [diff] [blame] | 86 | /dev/cam u:object_r:camera_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 87 | /dev/console u:object_r:console_device:s0 |
| 88 | /dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0 |
Robert Benea | e62cf5e | 2017-07-10 13:48:31 -0700 | [diff] [blame] | 89 | /dev/memcg(/.*)? u:object_r:cgroup:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 90 | /dev/device-mapper u:object_r:dm_device:s0 |
Stephen Smalley | 2cb1b31 | 2012-04-03 15:30:28 -0400 | [diff] [blame] | 91 | /dev/eac u:object_r:audio_device:s0 |
Mark Salyzyn | d33a9a1 | 2016-11-07 15:11:39 -0800 | [diff] [blame] | 92 | /dev/event-log-tags u:object_r:runtime_event_log_tags_file:s0 |
Stephen Smalley | af47ebb | 2013-11-04 09:47:29 -0500 | [diff] [blame] | 93 | /dev/fscklogs(/.*)? u:object_r:fscklogs:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 94 | /dev/full u:object_r:full_device:s0 |
William Roberts | 80ea1d2 | 2012-05-31 09:44:51 -0400 | [diff] [blame] | 95 | /dev/fuse u:object_r:fuse_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 96 | /dev/graphics(/.*)? u:object_r:graphics_device:s0 |
Alex Klyubin | 8d68831 | 2013-10-03 13:35:56 -0700 | [diff] [blame] | 97 | /dev/hw_random u:object_r:hw_random_device:s0 |
Martijn Coenen | 6b95239 | 2016-05-24 15:15:23 +0200 | [diff] [blame] | 98 | /dev/hwbinder u:object_r:hwbinder_device:s0 |
Bruce Beare | 59019fd | 2015-10-22 11:51:09 -0700 | [diff] [blame] | 99 | /dev/i2c-[0-9]+ u:object_r:i2c_device:s0 |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 100 | /dev/input(/.*)? u:object_r:input_device:s0 |
Robert Craig | f62af81 | 2013-01-30 13:17:14 -0500 | [diff] [blame] | 101 | /dev/iio:device[0-9]+ u:object_r:iio_device:s0 |
William Roberts | 07ef722 | 2012-06-19 18:46:16 -0700 | [diff] [blame] | 102 | /dev/ion u:object_r:ion_device:s0 |
Max Bires | 9e7a5b0 | 2017-01-09 14:57:03 -0800 | [diff] [blame] | 103 | /dev/keychord u:object_r:keychord_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 104 | /dev/kmem u:object_r:kmem_device:s0 |
Jeff Sharkey | a8e0f76 | 2017-03-25 21:38:17 -0600 | [diff] [blame] | 105 | /dev/loop-control u:object_r:loop_control_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 106 | /dev/mem u:object_r:kmem_device:s0 |
| 107 | /dev/modem.* u:object_r:radio_device:s0 |
| 108 | /dev/mtd(/.*)? u:object_r:mtd_device:s0 |
Stephen Smalley | c94e239 | 2012-01-06 10:25:53 -0500 | [diff] [blame] | 109 | /dev/mtp_usb u:object_r:mtp_device:s0 |
Mark Salyzyn | 34d32ea | 2014-12-15 12:01:35 -0800 | [diff] [blame] | 110 | /dev/pmsg0 u:object_r:pmsg_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 111 | /dev/pn544 u:object_r:nfc_device:s0 |
Max | c27c23f | 2016-12-04 15:11:29 -0800 | [diff] [blame] | 112 | /dev/port u:object_r:port_device:s0 |
rpcraig | d49f7e6 | 2012-08-20 06:13:28 -0400 | [diff] [blame] | 113 | /dev/ppp u:object_r:ppp_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 114 | /dev/ptmx u:object_r:ptmx_device:s0 |
Stephen Smalley | d9b8ef4 | 2014-01-16 08:47:34 -0500 | [diff] [blame] | 115 | /dev/pvrsrvkm u:object_r:gpu_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 116 | /dev/kmsg u:object_r:kmsg_device:s0 |
Josh Gao | 94e2a92 | 2017-03-28 13:09:37 -0700 | [diff] [blame] | 117 | /dev/kmsg_debug u:object_r:kmsg_debug_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 118 | /dev/null u:object_r:null_device:s0 |
| 119 | /dev/nvhdcp1 u:object_r:video_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 120 | /dev/random u:object_r:random_device:s0 |
hqjiang | ee5f400 | 2012-07-11 11:21:05 -0700 | [diff] [blame] | 121 | /dev/rpmsg-omx[0-9] u:object_r:rpmsg_device:s0 |
| 122 | /dev/rproc_user u:object_r:rpmsg_device:s0 |
dcashman | 1b4b3b9 | 2015-05-21 10:03:16 -0700 | [diff] [blame] | 123 | /dev/rtc[0-9] u:object_r:rtc_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 124 | /dev/snd(/.*)? u:object_r:audio_device:s0 |
Jeff Vander Stoep | c7e6074 | 2016-10-02 20:20:52 -0700 | [diff] [blame] | 125 | /dev/snd/audio_timer_device u:object_r:audio_timer_device:s0 |
| 126 | /dev/snd/audio_seq_device u:object_r:audio_seq_device:s0 |
Stephen Smalley | 081aed2 | 2013-12-02 09:02:22 -0500 | [diff] [blame] | 127 | /dev/socket(/.*)? u:object_r:socket_device:s0 |
Stephen Smalley | 61c80d5 | 2012-11-16 09:06:47 -0500 | [diff] [blame] | 128 | /dev/socket/adbd u:object_r:adbd_socket:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 129 | /dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0 |
Nick Kralevich | 09e6abd | 2013-12-13 22:19:45 -0800 | [diff] [blame] | 130 | /dev/socket/dumpstate u:object_r:dumpstate_socket:s0 |
Sreeram Ramachandran | 56ecf4b | 2014-05-01 11:12:10 -0700 | [diff] [blame] | 131 | /dev/socket/fwmarkd u:object_r:fwmarkd_socket:s0 |
Nick Kralevich | 2b392fc | 2013-12-05 16:55:34 -0800 | [diff] [blame] | 132 | /dev/socket/lmkd u:object_r:lmkd_socket:s0 |
Mark Salyzyn | 8ed750e | 2013-11-12 15:34:52 -0800 | [diff] [blame] | 133 | /dev/socket/logd u:object_r:logd_socket:s0 |
| 134 | /dev/socket/logdr u:object_r:logdr_socket:s0 |
| 135 | /dev/socket/logdw u:object_r:logdw_socket:s0 |
yro | 64c7a75 | 2018-04-20 11:07:22 -0700 | [diff] [blame] | 136 | /dev/socket/statsdw u:object_r:statsdw_socket:s0 |
Stephen Smalley | 4caf8c9 | 2013-09-19 15:09:38 -0400 | [diff] [blame] | 137 | /dev/socket/mdns u:object_r:mdns_socket:s0 |
Stephen Smalley | 96ff4c0 | 2014-02-24 13:04:49 -0500 | [diff] [blame] | 138 | /dev/socket/mdnsd u:object_r:mdnsd_socket:s0 |
Stephen Smalley | 3dad7b6 | 2014-03-05 09:50:08 -0500 | [diff] [blame] | 139 | /dev/socket/mtpd u:object_r:mtpd_socket:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 140 | /dev/socket/netd u:object_r:netd_socket:s0 |
Alex Vakulenko | 41daa7f | 2017-05-01 13:01:44 -0700 | [diff] [blame] | 141 | /dev/socket/pdx/system/buffer_hub u:object_r:pdx_bufferhub_dir:s0 |
| 142 | /dev/socket/pdx/system/buffer_hub/client u:object_r:pdx_bufferhub_client_endpoint_socket:s0 |
| 143 | /dev/socket/pdx/system/performance u:object_r:pdx_performance_dir:s0 |
| 144 | /dev/socket/pdx/system/performance/client u:object_r:pdx_performance_client_endpoint_socket:s0 |
Alex Vakulenko | 41daa7f | 2017-05-01 13:01:44 -0700 | [diff] [blame] | 145 | /dev/socket/pdx/system/vr/display u:object_r:pdx_display_dir:s0 |
| 146 | /dev/socket/pdx/system/vr/display/client u:object_r:pdx_display_client_endpoint_socket:s0 |
| 147 | /dev/socket/pdx/system/vr/display/manager u:object_r:pdx_display_manager_endpoint_socket:s0 |
| 148 | /dev/socket/pdx/system/vr/display/screenshot u:object_r:pdx_display_screenshot_endpoint_socket:s0 |
| 149 | /dev/socket/pdx/system/vr/display/vsync u:object_r:pdx_display_vsync_endpoint_socket:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 150 | /dev/socket/property_service u:object_r:property_socket:s0 |
Robert Craig | 18b5f87 | 2013-01-07 09:21:18 -0500 | [diff] [blame] | 151 | /dev/socket/racoon u:object_r:racoon_socket:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 152 | /dev/socket/rild u:object_r:rild_socket:s0 |
| 153 | /dev/socket/rild-debug u:object_r:rild_debug_socket:s0 |
Josh Gao | cb3eb4e | 2016-10-19 14:39:30 -0700 | [diff] [blame] | 154 | /dev/socket/tombstoned_crash u:object_r:tombstoned_crash_socket:s0 |
Narayan Kamath | f194aad | 2017-05-15 18:39:16 +0100 | [diff] [blame] | 155 | /dev/socket/tombstoned_java_trace u:object_r:tombstoned_java_trace_socket:s0 |
Josh Gao | cb3eb4e | 2016-10-19 14:39:30 -0700 | [diff] [blame] | 156 | /dev/socket/tombstoned_intercept u:object_r:tombstoned_intercept_socket:s0 |
Primiano Tucci | c80f9e0 | 2017-12-21 03:51:15 +0100 | [diff] [blame] | 157 | /dev/socket/traced_producer u:object_r:traced_producer_socket:s0 |
| 158 | /dev/socket/traced_consumer u:object_r:traced_consumer_socket:s0 |
Tao Bao | c285cad | 2016-02-26 10:30:12 -0800 | [diff] [blame] | 159 | /dev/socket/uncrypt u:object_r:uncrypt_socket:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 160 | /dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0 |
| 161 | /dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0 |
| 162 | /dev/socket/zygote u:object_r:zygote_socket:s0 |
Nick Kralevich | 7cba5da | 2014-05-22 16:48:20 -0700 | [diff] [blame] | 163 | /dev/socket/zygote_secondary u:object_r:zygote_socket:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 164 | /dev/spdif_out.* u:object_r:audio_device:s0 |
| 165 | /dev/tegra.* u:object_r:video_device:s0 |
Stephen Smalley | 74ba8c8 | 2013-04-05 14:22:27 -0400 | [diff] [blame] | 166 | /dev/tty u:object_r:owntty_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 167 | /dev/tty[0-9]* u:object_r:tty_device:s0 |
| 168 | /dev/ttyS[0-9]* u:object_r:serial_device:s0 |
Robert Craig | 18b5f87 | 2013-01-07 09:21:18 -0500 | [diff] [blame] | 169 | /dev/tun u:object_r:tun_device:s0 |
| 170 | /dev/uhid u:object_r:uhid_device:s0 |
Stephen Smalley | b3c48b6 | 2013-10-23 13:50:19 -0400 | [diff] [blame] | 171 | /dev/uinput u:object_r:uhid_device:s0 |
Stephen Smalley | 9fc0d40 | 2014-03-26 15:37:54 -0400 | [diff] [blame] | 172 | /dev/uio[0-9]* u:object_r:uio_device:s0 |
Nick Kralevich | 5eadcb8 | 2016-11-19 12:52:54 -0800 | [diff] [blame] | 173 | /dev/urandom u:object_r:random_device:s0 |
Robert Craig | f62af81 | 2013-01-30 13:17:14 -0500 | [diff] [blame] | 174 | /dev/usb_accessory u:object_r:usbaccessory_device:s0 |
Siarhei Vishniakou | 36a3df4 | 2017-12-22 17:17:06 -0800 | [diff] [blame] | 175 | /dev/v4l-touch[0-9]* u:object_r:input_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 176 | /dev/vcs[0-9a-z]* u:object_r:vcs_device:s0 |
| 177 | /dev/video[0-9]* u:object_r:video_device:s0 |
Martijn Coenen | cba70be | 2017-03-21 16:01:52 -0700 | [diff] [blame] | 178 | /dev/vndbinder u:object_r:vndbinder_device:s0 |
rpcraig | bac9992 | 2012-12-03 06:07:45 -0500 | [diff] [blame] | 179 | /dev/watchdog u:object_r:watchdog_device:s0 |
hqjiang | 4c06d27 | 2012-07-19 11:07:04 -0700 | [diff] [blame] | 180 | /dev/xt_qtaguid u:object_r:qtaguid_device:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 181 | /dev/zero u:object_r:zero_device:s0 |
Geremy Condra | c529c66 | 2013-02-28 17:33:16 -0800 | [diff] [blame] | 182 | /dev/__properties__ u:object_r:properties_device:s0 |
Tom Cherry | 8b5433a | 2017-11-16 14:25:02 -0800 | [diff] [blame] | 183 | /dev/__properties__/property_info u:object_r:property_info:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 184 | ############################# |
| 185 | # System files |
| 186 | # |
| 187 | /system(/.*)? u:object_r:system_file:s0 |
Yasuhiro Matsuda | 3d32817 | 2015-06-24 15:24:17 +0900 | [diff] [blame] | 188 | /system/bin/atrace u:object_r:atrace_exec:s0 |
Steven Moreland | 8bda3df | 2018-01-19 13:00:42 -0800 | [diff] [blame] | 189 | /system/bin/blank_screen u:object_r:blank_screen_exec:s0 |
Jin Qian | 9b565ef | 2017-06-06 17:27:44 -0700 | [diff] [blame] | 190 | /system/bin/e2fsdroid u:object_r:e2fs_exec:s0 |
| 191 | /system/bin/mke2fs u:object_r:e2fs_exec:s0 |
Stephen Smalley | 8a0c25e | 2014-09-23 09:11:30 -0400 | [diff] [blame] | 192 | /system/bin/e2fsck -- u:object_r:fsck_exec:s0 |
Nick Kralevich | 57a17d1 | 2014-10-20 10:36:49 -0700 | [diff] [blame] | 193 | /system/bin/fsck\.f2fs -- u:object_r:fsck_exec:s0 |
Jaegeuk Kim | 336424b | 2017-11-28 19:39:10 -0800 | [diff] [blame] | 194 | /system/bin/sload_f2fs -- u:object_r:e2fs_exec:s0 |
Jaegeuk Kim | c8e7a9f | 2017-11-27 10:13:33 -0800 | [diff] [blame] | 195 | /system/bin/make_f2fs -- u:object_r:e2fs_exec:s0 |
Jeff Sharkey | f063f46 | 2015-03-27 11:25:39 -0700 | [diff] [blame] | 196 | /system/bin/fsck_msdos -- u:object_r:fsck_exec:s0 |
liminghao | b1b872c | 2016-07-22 14:18:47 +0800 | [diff] [blame] | 197 | /system/bin/tune2fs -- u:object_r:fsck_exec:s0 |
Stephen Smalley | 8a0c25e | 2014-09-23 09:11:30 -0400 | [diff] [blame] | 198 | /system/bin/toolbox -- u:object_r:toolbox_exec:s0 |
Elliott Hughes | 367ef96 | 2014-12-17 16:03:01 -0800 | [diff] [blame] | 199 | /system/bin/toybox -- u:object_r:toolbox_exec:s0 |
Stephen Smalley | 54e9bc4 | 2014-09-04 08:44:49 -0400 | [diff] [blame] | 200 | /system/bin/logcat -- u:object_r:logcat_exec:s0 |
Mark Salyzyn | 36f2eb2 | 2017-04-03 12:38:30 -0700 | [diff] [blame] | 201 | /system/bin/logcatd -- u:object_r:logcat_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 202 | /system/bin/sh -- u:object_r:shell_exec:s0 |
Stephen Smalley | e884872 | 2012-11-13 13:00:05 -0500 | [diff] [blame] | 203 | /system/bin/run-as -- u:object_r:runas_exec:s0 |
Stephen Smalley | acde43f | 2013-12-11 15:17:53 -0500 | [diff] [blame] | 204 | /system/bin/bootanimation u:object_r:bootanim_exec:s0 |
James Hawkins | 2e8d71c | 2016-01-25 16:23:10 -0800 | [diff] [blame] | 205 | /system/bin/bootstat u:object_r:bootstat_exec:s0 |
Narayan Kamath | 5c65587 | 2014-05-14 17:13:24 +0100 | [diff] [blame] | 206 | /system/bin/app_process32 u:object_r:zygote_exec:s0 |
Nick Kralevich | 6bf9bbc | 2014-04-04 09:45:57 -0700 | [diff] [blame] | 207 | /system/bin/app_process64 u:object_r:zygote_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 208 | /system/bin/servicemanager u:object_r:servicemanager_exec:s0 |
Martijn Coenen | 6b95239 | 2016-05-24 15:15:23 +0200 | [diff] [blame] | 209 | /system/bin/hwservicemanager u:object_r:hwservicemanager_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 210 | /system/bin/surfaceflinger u:object_r:surfaceflinger_exec:s0 |
Nick Bray | 084faf0 | 2017-02-09 15:15:11 -0800 | [diff] [blame] | 211 | /system/bin/bufferhubd u:object_r:bufferhubd_exec:s0 |
| 212 | /system/bin/performanced u:object_r:performanced_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 213 | /system/bin/drmserver u:object_r:drmserver_exec:s0 |
Nick Kralevich | 09e6abd | 2013-12-13 22:19:45 -0800 | [diff] [blame] | 214 | /system/bin/dumpstate u:object_r:dumpstate_exec:s0 |
Joe Onorato | 41f93db | 2016-11-20 23:23:04 -0800 | [diff] [blame] | 215 | /system/bin/incident u:object_r:incident_exec:s0 |
| 216 | /system/bin/incidentd u:object_r:incidentd_exec:s0 |
Yi Jin | bc24ba7 | 2018-01-22 14:00:46 -0800 | [diff] [blame] | 217 | /system/bin/incident_helper u:object_r:incident_helper_exec:s0 |
Sandeep Patil | c6d8902 | 2017-04-14 19:06:56 -0700 | [diff] [blame] | 218 | /system/bin/netutils-wrapper-1\.0 u:object_r:netutils_wrapper_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 219 | /system/bin/vold u:object_r:vold_exec:s0 |
| 220 | /system/bin/netd u:object_r:netd_exec:s0 |
Ningyuan Wang | 3cbf14a | 2016-05-19 19:31:20 -0700 | [diff] [blame] | 221 | /system/bin/wificond u:object_r:wificond_exec:s0 |
Marco Nelissen | b03831f | 2015-09-09 10:48:04 -0700 | [diff] [blame] | 222 | /system/bin/audioserver u:object_r:audioserver_exec:s0 |
Jeff Tinker | 0d5bac1 | 2016-02-12 09:05:42 -0800 | [diff] [blame] | 223 | /system/bin/mediadrmserver u:object_r:mediadrmserver_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 224 | /system/bin/mediaserver u:object_r:mediaserver_exec:s0 |
Ray Essick | 3918540 | 2017-01-24 12:53:45 -0800 | [diff] [blame] | 225 | /system/bin/mediametrics u:object_r:mediametrics_exec:s0 |
Chien-Yu Chen | e037830 | 2015-12-03 16:10:05 -0800 | [diff] [blame] | 226 | /system/bin/cameraserver u:object_r:cameraserver_exec:s0 |
Marco Nelissen | 0f754ed | 2015-09-22 10:56:03 -0700 | [diff] [blame] | 227 | /system/bin/mediaextractor u:object_r:mediaextractor_exec:s0 |
Stephen Smalley | 96ff4c0 | 2014-02-24 13:04:49 -0500 | [diff] [blame] | 228 | /system/bin/mdnsd u:object_r:mdnsd_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 229 | /system/bin/installd u:object_r:installd_exec:s0 |
Andreas Gampe | e5d8a94 | 2016-03-29 15:08:20 -0700 | [diff] [blame] | 230 | /system/bin/otapreopt_chroot u:object_r:otapreopt_chroot_exec:s0 |
Andreas Gampe | a3a0bb4 | 2016-07-09 11:57:13 -0700 | [diff] [blame] | 231 | /system/bin/otapreopt_slot u:object_r:otapreopt_slot_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 232 | /system/bin/keystore u:object_r:keystore_exec:s0 |
Jim Miller | 264eb65 | 2015-05-12 15:16:06 -0700 | [diff] [blame] | 233 | /system/bin/fingerprintd u:object_r:fingerprintd_exec:s0 |
Andres Morales | e207986 | 2015-04-03 16:46:33 -0700 | [diff] [blame] | 234 | /system/bin/gatekeeperd u:object_r:gatekeeperd_exec:s0 |
Josh Gao | cb3eb4e | 2016-10-19 14:39:30 -0700 | [diff] [blame] | 235 | /system/bin/crash_dump32 u:object_r:crash_dump_exec:s0 |
| 236 | /system/bin/crash_dump64 u:object_r:crash_dump_exec:s0 |
| 237 | /system/bin/tombstoned u:object_r:tombstoned_exec:s0 |
Mark Salyzyn | 16fe52c | 2016-03-16 08:11:49 -0700 | [diff] [blame] | 238 | /system/bin/recovery-persist u:object_r:recovery_persist_exec:s0 |
| 239 | /system/bin/recovery-refresh u:object_r:recovery_refresh_exec:s0 |
William Roberts | 80ea1d2 | 2012-05-31 09:44:51 -0400 | [diff] [blame] | 240 | /system/bin/sdcard u:object_r:sdcardd_exec:s0 |
rpcraig | 867ae05 | 2012-08-15 06:25:14 -0400 | [diff] [blame] | 241 | /system/bin/dhcpcd u:object_r:dhcp_exec:s0 |
Samuel Tan | 7238833 | 2015-08-26 18:18:21 -0700 | [diff] [blame] | 242 | /system/bin/dhcpcd-6.8.2 u:object_r:dhcp_exec:s0 |
rpcraig | d49f7e6 | 2012-08-20 06:13:28 -0400 | [diff] [blame] | 243 | /system/bin/mtpd u:object_r:mtp_exec:s0 |
| 244 | /system/bin/pppd u:object_r:ppp_exec:s0 |
Robert Craig | 18b5f87 | 2013-01-07 09:21:18 -0500 | [diff] [blame] | 245 | /system/bin/racoon u:object_r:racoon_exec:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 246 | /system/xbin/su u:object_r:su_exec:s0 |
Andreas Gampe | 99e4f40 | 2017-12-01 17:04:04 -0800 | [diff] [blame] | 247 | /system/bin/perfprofd u:object_r:perfprofd_exec:s0 |
Nick Kralevich | dbd28d9 | 2013-06-27 15:11:02 -0700 | [diff] [blame] | 248 | /system/bin/dnsmasq u:object_r:dnsmasq_exec:s0 |
Sandeep Patil | dc08245 | 2016-11-01 13:49:10 -0700 | [diff] [blame] | 249 | /system/bin/healthd u:object_r:healthd_exec:s0 |
Lorenzo Colitti | ab7dfab | 2013-08-05 15:32:56 +0900 | [diff] [blame] | 250 | /system/bin/clatd u:object_r:clatd_exec:s0 |
Mark Salyzyn | e4b3e0b | 2018-02-20 11:02:39 -0800 | [diff] [blame] | 251 | /system/bin/llkd u:object_r:llkd_exec:s0 |
Nick Kralevich | 2b392fc | 2013-12-05 16:55:34 -0800 | [diff] [blame] | 252 | /system/bin/lmkd u:object_r:lmkd_exec:s0 |
Badhri Jagan Sridharan | 4f6eb37 | 2017-12-03 14:23:16 -0800 | [diff] [blame] | 253 | /system/bin/usbd u:object_r:usbd_exec:s0 |
Nick Kralevich | caa6a32 | 2013-12-15 12:50:00 -0800 | [diff] [blame] | 254 | /system/bin/inputflinger u:object_r:inputflinger_exec:s0 |
Mark Salyzyn | 8ed750e | 2013-11-12 15:34:52 -0800 | [diff] [blame] | 255 | /system/bin/logd u:object_r:logd_exec:s0 |
Primiano Tucci | 1a9f4f7 | 2018-01-24 16:07:09 +0000 | [diff] [blame] | 256 | /system/bin/perfetto u:object_r:perfetto_exec:s0 |
Primiano Tucci | c80f9e0 | 2017-12-21 03:51:15 +0100 | [diff] [blame] | 257 | /system/bin/traced u:object_r:traced_exec:s0 |
| 258 | /system/bin/traced_probes u:object_r:traced_probes_exec:s0 |
Nick Kralevich | 96eeb1e | 2014-02-19 13:33:32 -0800 | [diff] [blame] | 259 | /system/bin/uncrypt u:object_r:uncrypt_exec:s0 |
Tao Bao | 14b6f44 | 2015-12-04 17:48:50 -0800 | [diff] [blame] | 260 | /system/bin/update_verifier u:object_r:update_verifier_exec:s0 |
Nick Kralevich | b4adc62 | 2014-06-17 08:49:17 -0700 | [diff] [blame] | 261 | /system/bin/logwrapper u:object_r:system_file:s0 |
Nick Kralevich | bf8a37b | 2014-06-20 18:11:11 -0700 | [diff] [blame] | 262 | /system/bin/vdc u:object_r:vdc_exec:s0 |
Alex Light | b7ebb32 | 2016-06-22 15:47:09 -0700 | [diff] [blame] | 263 | /system/bin/cppreopts.sh u:object_r:cppreopts_exec:s0 |
| 264 | /system/bin/preopt2cachename u:object_r:preopt2cachename_exec:s0 |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 265 | /system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0 |
Andreas Gampe | 47b373a | 2016-08-25 19:36:49 -0700 | [diff] [blame] | 266 | /system/bin/dex2oat(d)? u:object_r:dex2oat_exec:s0 |
Andreas Gampe | 2713b09 | 2017-07-24 19:35:35 -0700 | [diff] [blame] | 267 | /system/bin/dexoptanalyzer(d)? u:object_r:dexoptanalyzer_exec:s0 |
Alex Light | fbc8ec2 | 2014-08-05 09:15:01 -0700 | [diff] [blame] | 268 | # patchoat executable has (essentially) the same requirements as dex2oat. |
Andreas Gampe | 47b373a | 2016-08-25 19:36:49 -0700 | [diff] [blame] | 269 | /system/bin/patchoat(d)? u:object_r:dex2oat_exec:s0 |
Andreas Gampe | 2713b09 | 2017-07-24 19:35:35 -0700 | [diff] [blame] | 270 | /system/bin/profman(d)? u:object_r:profman_exec:s0 |
Jeff Sharkey | f063f46 | 2015-03-27 11:25:39 -0700 | [diff] [blame] | 271 | /system/bin/sgdisk u:object_r:sgdisk_exec:s0 |
| 272 | /system/bin/blkid u:object_r:blkid_exec:s0 |
Neil Fuller | e647578 | 2015-04-07 13:35:21 +0100 | [diff] [blame] | 273 | /system/bin/tzdatacheck u:object_r:tzdatacheck_exec:s0 |
Stephen Smalley | b335e38 | 2015-06-19 13:47:26 -0400 | [diff] [blame] | 274 | /system/bin/idmap u:object_r:idmap_exec:s0 |
David Zeuthen | a10f789 | 2015-10-05 17:04:39 -0400 | [diff] [blame] | 275 | /system/bin/update_engine u:object_r:update_engine_exec:s0 |
Sen Jiang | d33155b | 2015-11-20 16:09:14 -0800 | [diff] [blame] | 276 | /system/bin/bspatch u:object_r:update_engine_exec:s0 |
ynwang | 9fa8823 | 2016-06-17 15:05:10 -0700 | [diff] [blame] | 277 | /system/bin/storaged u:object_r:storaged_exec:s0 |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 278 | /system/bin/thermalserviced u:object_r:thermalserviced_exec:s0 |
Robert Quattlebaum | fd03d51 | 2017-08-04 14:51:36 -0700 | [diff] [blame] | 279 | /system/bin/wpantund u:object_r:wpantund_exec:s0 |
Nick Bray | 084faf0 | 2017-02-09 15:15:11 -0800 | [diff] [blame] | 280 | /system/bin/virtual_touchpad u:object_r:virtual_touchpad_exec:s0 |
Alex Klyubin | 08d6f56 | 2017-03-17 16:51:56 -0700 | [diff] [blame] | 281 | /system/bin/hw/android\.hidl\.allocator@1\.0-service u:object_r:hal_allocator_default_exec:s0 |
Dan Cashman | 4f9a648 | 2017-04-10 12:27:18 -0700 | [diff] [blame] | 282 | /system/etc/selinux/mapping/[0-9]+\.[0-9]+\.cil u:object_r:sepolicy_file:s0 |
| 283 | /system/etc/selinux/plat_mac_permissions\.xml u:object_r:mac_perms_file:s0 |
Sandeep Patil | 54a4200 | 2017-03-24 10:22:14 -0700 | [diff] [blame] | 284 | /system/etc/selinux/plat_property_contexts u:object_r:property_contexts_file:s0 |
Sandeep Patil | 939d16b | 2017-03-24 12:24:43 -0700 | [diff] [blame] | 285 | /system/etc/selinux/plat_service_contexts u:object_r:service_contexts_file:s0 |
Martijn Coenen | 3ea47b9 | 2017-04-07 16:14:43 -0700 | [diff] [blame] | 286 | /system/etc/selinux/plat_hwservice_contexts u:object_r:hwservice_contexts_file:s0 |
Sandeep Patil | c9cf736 | 2017-03-24 15:02:13 -0700 | [diff] [blame] | 287 | /system/etc/selinux/plat_file_contexts u:object_r:file_contexts_file:s0 |
Sandeep Patil | 1e14996 | 2017-03-27 10:57:07 -0700 | [diff] [blame] | 288 | /system/etc/selinux/plat_seapp_contexts u:object_r:seapp_contexts_file:s0 |
Sandeep Patil | 136caa1 | 2017-03-27 11:39:16 -0700 | [diff] [blame] | 289 | /system/etc/selinux/plat_sepolicy.cil u:object_r:sepolicy_file:s0 |
Dan Cashman | 4f9a648 | 2017-04-10 12:27:18 -0700 | [diff] [blame] | 290 | /system/etc/selinux/plat_and_mapping_sepolicy\.cil\.sha256 u:object_r:sepolicy_file:s0 |
Daniel Nicoara | 6907e39 | 2017-03-14 16:26:17 -0400 | [diff] [blame] | 291 | /system/bin/vr_hwc u:object_r:vr_hwc_exec:s0 |
Bowgo Tsai | 5846c79 | 2017-07-31 18:38:28 +0800 | [diff] [blame] | 292 | /system/bin/adbd u:object_r:adbd_exec:s0 |
Paul Crowley | 5b962cf | 2017-10-13 14:54:32 -0700 | [diff] [blame] | 293 | /system/bin/vold_prepare_subdirs u:object_r:vold_prepare_subdirs_exec:s0 |
yro | 2970845 | 2017-12-18 15:14:33 -0800 | [diff] [blame] | 294 | /system/bin/stats u:object_r:stats_exec:s0 |
| 295 | /system/bin/statsd u:object_r:statsd_exec:s0 |
Chenbo Feng | 566411e | 2018-01-02 15:31:18 -0800 | [diff] [blame] | 296 | /system/bin/bpfloader u:object_r:bpfloader_exec:s0 |
Paul Crowley | 9f76030 | 2018-05-08 15:45:38 -0700 | [diff] [blame] | 297 | /system/bin/wait_for_keymaster u:object_r:wait_for_keymaster_exec:s0 |
Tom Cherry | d840374 | 2018-08-01 15:48:20 -0700 | [diff] [blame] | 298 | /system/bin/watchdogd u:object_r:watchdogd_exec:s0 |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 299 | |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 300 | ############################# |
Colin Cross | 4649524 | 2013-03-20 12:03:04 -0700 | [diff] [blame] | 301 | # Vendor files |
| 302 | # |
Sandeep Patil | 277a20e | 2017-04-01 17:17:12 -0700 | [diff] [blame] | 303 | /(vendor|system/vendor)(/.*)? u:object_r:vendor_file:s0 |
Sandeep Patil | c96bb1e | 2017-04-13 13:06:00 -0700 | [diff] [blame] | 304 | /(vendor|system/vendor)/bin/sh u:object_r:vendor_shell_exec:s0 |
Sandeep Patil | 4fe441f | 2017-04-12 15:19:12 -0700 | [diff] [blame] | 305 | /(vendor|system/vendor)/bin/toybox_vendor u:object_r:vendor_toolbox_exec:s0 |
Tom Cherry | b7255bf | 2018-01-11 12:53:09 -0800 | [diff] [blame] | 306 | /(vendor|system/vendor)/bin/toolbox u:object_r:vendor_toolbox_exec:s0 |
Sandeep Patil | 277a20e | 2017-04-01 17:17:12 -0700 | [diff] [blame] | 307 | /(vendor|system/vendor)/etc(/.*)? u:object_r:vendor_configs_file:s0 |
| 308 | |
| 309 | /(vendor|system/vendor)/lib(64)?/egl(/.*)? u:object_r:same_process_hal_file:s0 |
| 310 | |
Jiyong Park | ba23c8f | 2017-04-10 13:37:40 +0900 | [diff] [blame] | 311 | /(vendor|system/vendor)/lib(64)?/vndk-sp(/.*)? u:object_r:vndk_sp_file:s0 |
Jiyong Park | a4768fa | 2017-04-07 21:16:19 +0900 | [diff] [blame] | 312 | |
Sandeep Patil | 277a20e | 2017-04-01 17:17:12 -0700 | [diff] [blame] | 313 | /(vendor|system/vendor)/manifest.xml u:object_r:vendor_configs_file:s0 |
Michael Schwartz | bc3150a | 2017-05-18 09:59:05 -0700 | [diff] [blame] | 314 | /(vendor|system/vendor)/compatibility_matrix.xml u:object_r:vendor_configs_file:s0 |
Yifan Hong | 8d8da6a | 2018-01-18 17:53:35 -0800 | [diff] [blame] | 315 | /(vendor|system/vendor)/etc/vintf(/.*)? u:object_r:vendor_configs_file:s0 |
Sandeep Patil | 277a20e | 2017-04-01 17:17:12 -0700 | [diff] [blame] | 316 | /(vendor|system/vendor)/app(/.*)? u:object_r:vendor_app_file:s0 |
Jiyong Park | 7631157 | 2017-11-20 21:09:55 +0900 | [diff] [blame] | 317 | /(vendor|system/vendor)/priv-app(/.*)? u:object_r:vendor_app_file:s0 |
Sandeep Patil | 277a20e | 2017-04-01 17:17:12 -0700 | [diff] [blame] | 318 | /(vendor|system/vendor)/overlay(/.*)? u:object_r:vendor_overlay_file:s0 |
| 319 | /(vendor|system/vendor)/framework(/.*)? u:object_r:vendor_framework_file:s0 |
| 320 | |
| 321 | # HAL location |
| 322 | /(vendor|system/vendor)/lib(64)?/hw u:object_r:vendor_hal_file:s0 |
| 323 | |
Tom Cherry | d2522cb | 2015-03-18 13:11:11 -0700 | [diff] [blame] | 324 | ############################# |
Nick Kralevich | 2025fd1 | 2015-05-06 16:33:56 -0700 | [diff] [blame] | 325 | # OEM and ODM files |
Tom Cherry | d2522cb | 2015-03-18 13:11:11 -0700 | [diff] [blame] | 326 | # |
Jiyong Park | 2f10155 | 2018-03-08 02:53:45 +0900 | [diff] [blame] | 327 | /(odm|vendor/odm)(/.*)? u:object_r:vendor_file:s0 |
| 328 | /(odm|vendor/odm)/lib(64)?/egl(/.*)? u:object_r:same_process_hal_file:s0 |
| 329 | /(odm|vendor/odm)/lib(64)?/hw u:object_r:vendor_hal_file:s0 |
| 330 | /(odm|vendor/odm)/lib(64)?/vndk-sp(/.*)? u:object_r:vndk_sp_file:s0 |
| 331 | /(odm|vendor/odm)/bin/sh u:object_r:vendor_shell_exec:s0 |
| 332 | /(odm|vendor/odm)/etc(/.*)? u:object_r:vendor_configs_file:s0 |
| 333 | /(odm|vendor/odm)/app(/.*)? u:object_r:vendor_app_file:s0 |
| 334 | /(odm|vendor/odm)/priv-app(/.*)? u:object_r:vendor_app_file:s0 |
| 335 | /(odm|vendor/odm)/overlay(/.*)? u:object_r:vendor_overlay_file:s0 |
| 336 | /(odm|vendor/odm)/framework(/.*)? u:object_r:vendor_framework_file:s0 |
Jiyong Park | 4c3ab18 | 2017-12-13 11:54:59 +0900 | [diff] [blame] | 337 | |
Nick Kralevich | 2025fd1 | 2015-05-06 16:33:56 -0700 | [diff] [blame] | 338 | /oem(/.*)? u:object_r:oemfs:s0 |
| 339 | |
Bowgo Tsai | 45457e3 | 2017-11-27 11:41:33 +0800 | [diff] [blame] | 340 | # The precompiled monolithic sepolicy will be under /odm only when |
| 341 | # BOARD_USES_ODMIMAGE is true: a separate odm.img is built. |
| 342 | /odm/etc/selinux/precompiled_sepolicy u:object_r:sepolicy_file:s0 |
| 343 | /odm/etc/selinux/precompiled_sepolicy\.plat_and_mapping\.sha256 u:object_r:sepolicy_file:s0 |
| 344 | |
| 345 | /(odm|vendor/odm)/etc/selinux/odm_sepolicy.cil u:object_r:sepolicy_file:s0 |
Bowgo Tsai | bae1517 | 2017-11-29 16:14:53 +0800 | [diff] [blame] | 346 | /(odm|vendor/odm)/etc/selinux/odm_file_contexts u:object_r:file_contexts_file:s0 |
Bowgo Tsai | ecf656b | 2017-11-29 16:15:28 +0800 | [diff] [blame] | 347 | /(odm|vendor/odm)/etc/selinux/odm_seapp_contexts u:object_r:seapp_contexts_file:s0 |
Bowgo Tsai | 1f717b1 | 2017-11-29 16:15:55 +0800 | [diff] [blame] | 348 | /(odm|vendor/odm)/etc/selinux/odm_property_contexts u:object_r:property_contexts_file:s0 |
Bowgo Tsai | ad6231f | 2017-11-29 16:16:26 +0800 | [diff] [blame] | 349 | /(odm|vendor/odm)/etc/selinux/odm_hwservice_contexts u:object_r:hwservice_contexts_file:s0 |
Bowgo Tsai | af7d85f | 2017-11-29 16:06:15 +0800 | [diff] [blame] | 350 | /(odm|vendor/odm)/etc/selinux/odm_mac_permissions.xml u:object_r:mac_perms_file:s0 |
Tom Cherry | d2522cb | 2015-03-18 13:11:11 -0700 | [diff] [blame] | 351 | |
Colin Cross | 4649524 | 2013-03-20 12:03:04 -0700 | [diff] [blame] | 352 | ############################# |
Jaekyun Seok | a90cae8 | 2018-01-17 15:27:35 +0900 | [diff] [blame] | 353 | # Product files |
| 354 | # |
Dario Freni | 53a0763 | 2018-05-29 13:17:03 +0100 | [diff] [blame] | 355 | /(product|system/product)(/.*)? u:object_r:system_file:s0 |
| 356 | |
| 357 | ############################# |
| 358 | # Product-Services files |
| 359 | # |
| 360 | /(product-services|system/product-services)(/.*)? u:object_r:system_file:s0 |
Jaekyun Seok | a90cae8 | 2018-01-17 15:27:35 +0900 | [diff] [blame] | 361 | |
| 362 | ############################# |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 363 | # Data files |
| 364 | # |
Jeff Sharkey | 73d9c2a | 2015-04-06 16:21:54 -0700 | [diff] [blame] | 365 | # NOTE: When modifying existing label rules, changes may also need to |
| 366 | # propagate to the "Expanded data files" section. |
| 367 | # |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 368 | /data(/.*)? u:object_r:system_data_file:s0 |
Stephen Smalley | baf49bd | 2014-05-12 11:18:21 -0400 | [diff] [blame] | 369 | /data/.layout_version u:object_r:install_data_file:s0 |
Paul Lawrence | 38af1da | 2015-03-11 15:44:14 -0700 | [diff] [blame] | 370 | /data/unencrypted(/.*)? u:object_r:unencrypted_data_file:s0 |
rpcraig | 1c8464e | 2012-12-04 08:13:58 -0500 | [diff] [blame] | 371 | /data/backup(/.*)? u:object_r:backup_data_file:s0 |
| 372 | /data/secure/backup(/.*)? u:object_r:backup_data_file:s0 |
Stephen Smalley | a7e4ace | 2014-02-04 14:29:51 -0500 | [diff] [blame] | 373 | /data/system/ndebugsocket u:object_r:system_ndebug_socket:s0 |
Stephen Smalley | c83d008 | 2012-03-07 14:59:01 -0500 | [diff] [blame] | 374 | /data/drm(/.*)? u:object_r:drm_data_file:s0 |
Nick Kralevich | fad4d5f | 2014-06-16 14:19:31 -0700 | [diff] [blame] | 375 | /data/resource-cache(/.*)? u:object_r:resourcecache_data_file:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 376 | /data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0 |
Andreas Gampe | 47ebae1 | 2015-12-02 21:23:30 -0800 | [diff] [blame] | 377 | /data/ota(/.*)? u:object_r:ota_data_file:s0 |
Tao Bao | e06ed7d | 2016-05-24 21:07:48 -0700 | [diff] [blame] | 378 | /data/ota_package(/.*)? u:object_r:ota_package_file:s0 |
Nick Kralevich | 973877d | 2014-10-20 21:56:02 -0700 | [diff] [blame] | 379 | /data/adb(/.*)? u:object_r:adb_data_file:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 380 | /data/anr(/.*)? u:object_r:anr_data_file:s0 |
Jeff Sharkey | be092af | 2014-07-07 10:58:53 -0700 | [diff] [blame] | 381 | /data/app(/.*)? u:object_r:apk_data_file:s0 |
Fyodor Kupolov | b87a4b1 | 2015-03-03 18:19:12 -0800 | [diff] [blame] | 382 | /data/app/[^/]+/oat(/.*)? u:object_r:dalvikcache_data_file:s0 |
| 383 | /data/app/vmdl[^/]+\.tmp(/.*)? u:object_r:apk_tmp_file:s0 |
| 384 | /data/app/vmdl[^/]+\.tmp/oat(/.*)? u:object_r:dalvikcache_data_file:s0 |
Jeff Sharkey | be092af | 2014-07-07 10:58:53 -0700 | [diff] [blame] | 385 | /data/app-private(/.*)? u:object_r:apk_private_data_file:s0 |
| 386 | /data/app-private/vmdl.*\.tmp(/.*)? u:object_r:apk_private_tmp_file:s0 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 387 | /data/tombstones(/.*)? u:object_r:tombstone_data_file:s0 |
xshu | 6ad3c89 | 2017-12-15 14:01:44 -0800 | [diff] [blame] | 388 | /data/vendor/tombstones/wifi(/.*)? u:object_r:tombstone_wifi_data_file:s0 |
Geremy Condra | e69552b | 2013-03-26 18:00:13 +0000 | [diff] [blame] | 389 | /data/local/tmp(/.*)? u:object_r:shell_data_file:s0 |
Sandeep Patil | 34e35e9 | 2018-02-20 12:41:30 -0800 | [diff] [blame] | 390 | /data/local/tmp/ltp(/.*)? u:object_r:nativetest_data_file:s0 |
Max Bires | 35c3638 | 2018-01-15 16:44:04 -0800 | [diff] [blame] | 391 | /data/local/traces(/.*)? u:object_r:trace_data_file:s0 |
Stephen Smalley | e13fabd | 2013-12-17 14:39:35 -0500 | [diff] [blame] | 392 | /data/media(/.*)? u:object_r:media_rw_data_file:s0 |
rpcraig | d362cdf | 2014-01-07 21:53:01 -0500 | [diff] [blame] | 393 | /data/mediadrm(/.*)? u:object_r:media_data_file:s0 |
Nick Kralevich | e9d261f | 2015-10-28 16:45:58 -0700 | [diff] [blame] | 394 | /data/nativetest(/.*)? u:object_r:nativetest_data_file:s0 |
Myles Watson | 926dc33 | 2017-01-12 14:18:50 -0800 | [diff] [blame] | 395 | /data/nativetest64(/.*)? u:object_r:nativetest_data_file:s0 |
Stephen Smalley | ad0d0fc | 2014-05-29 09:22:16 -0400 | [diff] [blame] | 396 | /data/property(/.*)? u:object_r:property_data_file:s0 |
Fyodor Kupolov | 49ac2a3 | 2016-05-20 11:08:45 -0700 | [diff] [blame] | 397 | /data/preloads(/.*)? u:object_r:preloads_data_file:s0 |
Fyodor Kupolov | b238fe6 | 2017-03-14 11:42:03 -0700 | [diff] [blame] | 398 | /data/preloads/media(/.*)? u:object_r:preloads_media_file:s0 |
| 399 | /data/preloads/demo(/.*)? u:object_r:preloads_media_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 400 | |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 401 | # Misc data |
Stephen Smalley | 5554075 | 2013-09-30 13:54:09 -0400 | [diff] [blame] | 402 | /data/misc/adb(/.*)? u:object_r:adb_keys_file:s0 |
Niklas Lindgren | f3626f3 | 2018-05-21 17:01:02 +0200 | [diff] [blame] | 403 | /data/misc/apns(/.*)? u:object_r:radio_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 404 | /data/misc/audio(/.*)? u:object_r:audio_data_file:s0 |
Glenn Kasten | 962e3a6 | 2016-02-23 16:16:16 -0800 | [diff] [blame] | 405 | /data/misc/audioserver(/.*)? u:object_r:audioserver_data_file:s0 |
Mikhail Naganov | 2ff6b4d | 2016-08-04 13:40:23 -0700 | [diff] [blame] | 406 | /data/misc/audiohal(/.*)? u:object_r:audiohal_data_file:s0 |
James Hawkins | 39c198a | 2016-01-19 10:54:20 -0800 | [diff] [blame] | 407 | /data/misc/bootstat(/.*)? u:object_r:bootstat_data_file:s0 |
Yasuhiro Matsuda | 3d32817 | 2015-06-24 15:24:17 +0900 | [diff] [blame] | 408 | /data/misc/boottrace(/.*)? u:object_r:boottrace_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 409 | /data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0 |
Ajay Panicker | a456726 | 2016-09-16 12:55:42 -0700 | [diff] [blame] | 410 | /data/misc/bluetooth/logs(/.*)? u:object_r:bluetooth_logs_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 411 | /data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0 |
Stephen Smalley | a7e4ace | 2014-02-04 14:29:51 -0500 | [diff] [blame] | 412 | /data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0 |
| 413 | /data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 414 | /data/misc/camera(/.*)? u:object_r:camera_data_file:s0 |
fionaxu | 2cb8729 | 2018-01-02 10:21:33 -0800 | [diff] [blame] | 415 | /data/misc/carrierid(/.*)? u:object_r:radio_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 416 | /data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0 |
Samuel Tan | 7238833 | 2015-08-26 18:18:21 -0700 | [diff] [blame] | 417 | /data/misc/dhcp-6.8.2(/.*)? u:object_r:dhcp_data_file:s0 |
Nick Kralevich | 367757d | 2015-04-17 17:56:31 -0700 | [diff] [blame] | 418 | /data/misc/gatekeeper(/.*)? u:object_r:gatekeeper_data_file:s0 |
Joe Onorato | 41f93db | 2016-11-20 23:23:04 -0800 | [diff] [blame] | 419 | /data/misc/incidents(/.*)? u:object_r:incident_data_file:s0 |
Robin Lee | 51bfecf | 2014-10-13 12:10:08 +0100 | [diff] [blame] | 420 | /data/misc/keychain(/.*)? u:object_r:keychain_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 421 | /data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0 |
Mark Salyzyn | 0d22c6c | 2015-05-26 15:12:45 -0700 | [diff] [blame] | 422 | /data/misc/logd(/.*)? u:object_r:misc_logd_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 423 | /data/misc/media(/.*)? u:object_r:media_data_file:s0 |
Sreeram Ramachandran | 65edb75 | 2014-07-07 22:04:57 -0700 | [diff] [blame] | 424 | /data/misc/net(/.*)? u:object_r:net_data_file:s0 |
Ricky Wai | ff3b957 | 2017-12-14 09:56:32 +0000 | [diff] [blame] | 425 | /data/misc/network_watchlist(/.*)? u:object_r:network_watchlist_data_file:s0 |
Primiano Tucci | 1a9f4f7 | 2018-01-24 16:07:09 +0000 | [diff] [blame] | 426 | /data/misc/perfetto-traces(/.*)? u:object_r:perfetto_traces_data_file:s0 |
Mark Salyzyn | 16fe52c | 2016-03-16 08:11:49 -0700 | [diff] [blame] | 427 | /data/misc/recovery(/.*)? u:object_r:recovery_data_file:s0 |
Torne (Richard Coles) | 9786af2 | 2014-05-23 11:01:58 +0100 | [diff] [blame] | 428 | /data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0 |
Robert Craig | a00fb29 | 2014-03-18 13:29:51 -0400 | [diff] [blame] | 429 | /data/misc/sms(/.*)? u:object_r:radio_data_file:s0 |
yro | 2970845 | 2017-12-18 15:14:33 -0800 | [diff] [blame] | 430 | /data/misc/stats-data(/.*)? u:object_r:stats_data_file:s0 |
| 431 | /data/misc/stats-service(/.*)? u:object_r:stats_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 432 | /data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0 |
Abodunrinwa Toki | adfc5db | 2017-04-26 21:20:20 +0100 | [diff] [blame] | 433 | /data/misc/textclassifier(/.*)? u:object_r:textclassifier_data_file:s0 |
Robin Lee | 51bfecf | 2014-10-13 12:10:08 +0100 | [diff] [blame] | 434 | /data/misc/user(/.*)? u:object_r:misc_user_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 435 | /data/misc/vpn(/.*)? u:object_r:vpn_data_file:s0 |
| 436 | /data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0 |
Stephen Smalley | 418e2ab | 2014-01-29 13:45:51 -0500 | [diff] [blame] | 437 | /data/misc/wifi/sockets(/.*)? u:object_r:wpa_socket:s0 |
| 438 | /data/misc/wifi/sockets/wpa_ctrl.* u:object_r:system_wpa_socket:s0 |
Nick Kralevich | 7466f9b | 2013-12-12 15:32:42 -0800 | [diff] [blame] | 439 | /data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0 |
Jeff Sharkey | 4423ecd | 2015-03-31 15:03:13 -0700 | [diff] [blame] | 440 | /data/misc/vold(/.*)? u:object_r:vold_data_file:s0 |
Dehao Chen | 34a468f | 2015-05-05 15:11:44 -0700 | [diff] [blame] | 441 | /data/misc/perfprofd(/.*)? u:object_r:perfprofd_data_file:s0 |
David Zeuthen | a10f789 | 2015-10-05 17:04:39 -0400 | [diff] [blame] | 442 | /data/misc/update_engine(/.*)? u:object_r:update_engine_data_file:s0 |
Hakan Kvist | 6fe014f | 2017-11-06 12:56:00 +0100 | [diff] [blame] | 443 | /data/misc/update_engine_log(/.*)? u:object_r:update_engine_log_data_file:s0 |
Jeff Vander Stoep | 4d3ee1a | 2018-04-16 07:49:49 -0700 | [diff] [blame] | 444 | /data/system/dropbox(/.*)? u:object_r:dropbox_data_file:s0 |
Nick Kralevich | 8a06c07 | 2015-04-07 16:40:44 -0700 | [diff] [blame] | 445 | /data/system/heapdump(/.*)? u:object_r:heapdump_data_file:s0 |
Calin Juravle | f255d77 | 2015-11-10 18:49:57 +0000 | [diff] [blame] | 446 | /data/misc/trace(/.*)? u:object_r:method_trace_data_file:s0 |
Vishnu Nair | 2d6942d | 2017-11-17 08:23:32 -0800 | [diff] [blame] | 447 | /data/misc/wmtrace(/.*)? u:object_r:wm_trace_data_file:s0 |
Calin Juravle | 89625c9 | 2016-02-01 19:28:39 +0000 | [diff] [blame] | 448 | # TODO(calin) label profile reference differently so that only |
| 449 | # profman run as a special user can write to them |
| 450 | /data/misc/profiles/cur(/.*)? u:object_r:user_profile_data_file:s0 |
| 451 | /data/misc/profiles/ref(/.*)? u:object_r:user_profile_data_file:s0 |
David Sehr | a5d0792 | 2016-05-27 12:41:35 -0700 | [diff] [blame] | 452 | /data/misc/profman(/.*)? u:object_r:profman_dump_data_file:s0 |
Jeff Vander Stoep | d25ccab | 2018-02-07 16:29:06 -0800 | [diff] [blame] | 453 | /data/vendor(/.*)? u:object_r:vendor_data_file:s0 |
| 454 | /data/vendor_ce(/.*)? u:object_r:vendor_data_file:s0 |
| 455 | /data/vendor_de(/.*)? u:object_r:vendor_data_file:s0 |
Nick Kralevich | 6a32eec | 2013-12-12 15:23:10 -0800 | [diff] [blame] | 456 | |
Jin Qian | 81d8b0e | 2017-10-16 16:39:13 -0700 | [diff] [blame] | 457 | # storaged proto files |
Jin Qian | c012533 | 2017-10-19 14:41:37 -0700 | [diff] [blame] | 458 | /data/misc_de/[0-9]+/storaged(/.*)? u:object_r:storaged_data_file:s0 |
Jin Qian | 81d8b0e | 2017-10-16 16:39:13 -0700 | [diff] [blame] | 459 | /data/misc_ce/[0-9]+/storaged(/.*)? u:object_r:storaged_data_file:s0 |
| 460 | |
Jim Miller | 264eb65 | 2015-05-12 15:16:06 -0700 | [diff] [blame] | 461 | # Fingerprint data |
| 462 | /data/system/users/[0-9]+/fpdata(/.*)? u:object_r:fingerprintd_data_file:s0 |
| 463 | |
Andreas Huber | 4d6a5e8 | 2018-01-22 13:24:10 -0800 | [diff] [blame] | 464 | # Fingerprint vendor data file |
| 465 | /data/vendor_de/[0-9]+/fpdata(/.*)? u:object_r:fingerprint_vendor_data_file:s0 |
| 466 | |
Yongqin Liu | cc38e6d | 2014-12-05 13:40:22 +0800 | [diff] [blame] | 467 | # Bootchart data |
| 468 | /data/bootchart(/.*)? u:object_r:bootchart_data_file:s0 |
| 469 | |
Jeff Sharkey | 73d9c2a | 2015-04-06 16:21:54 -0700 | [diff] [blame] | 470 | ############################# |
| 471 | # Expanded data files |
| 472 | # |
| 473 | /mnt/expand(/.*)? u:object_r:mnt_expand_file:s0 |
| 474 | /mnt/expand/[^/]+(/.*)? u:object_r:system_data_file:s0 |
| 475 | /mnt/expand/[^/]+/app(/.*)? u:object_r:apk_data_file:s0 |
| 476 | /mnt/expand/[^/]+/app/[^/]+/oat(/.*)? u:object_r:dalvikcache_data_file:s0 |
| 477 | /mnt/expand/[^/]+/app/vmdl[^/]+\.tmp(/.*)? u:object_r:apk_tmp_file:s0 |
| 478 | /mnt/expand/[^/]+/app/vmdl[^/]+\.tmp/oat(/.*)? u:object_r:dalvikcache_data_file:s0 |
| 479 | /mnt/expand/[^/]+/local/tmp(/.*)? u:object_r:shell_data_file:s0 |
| 480 | /mnt/expand/[^/]+/media(/.*)? u:object_r:media_rw_data_file:s0 |
Jeff Sharkey | c960596 | 2015-05-14 20:55:31 -0700 | [diff] [blame] | 481 | /mnt/expand/[^/]+/misc/vold(/.*)? u:object_r:vold_data_file:s0 |
Jeff Sharkey | 73d9c2a | 2015-04-06 16:21:54 -0700 | [diff] [blame] | 482 | |
Nick Kralevich | ca62a8b | 2014-10-31 12:40:12 -0700 | [diff] [blame] | 483 | # coredump directory for userdebug/eng devices |
| 484 | /cores(/.*)? u:object_r:coredump_file:s0 |
| 485 | |
Christopher Tate | fdeeb59 | 2016-01-26 16:39:34 -0800 | [diff] [blame] | 486 | # Wallpaper files |
Christopher Tate | 2e1556d | 2016-02-10 19:39:12 -0800 | [diff] [blame] | 487 | /data/system/users/[0-9]+/wallpaper_lock_orig u:object_r:wallpaper_file:s0 |
| 488 | /data/system/users/[0-9]+/wallpaper_lock u:object_r:wallpaper_file:s0 |
Christopher Tate | fdeeb59 | 2016-01-26 16:39:34 -0800 | [diff] [blame] | 489 | /data/system/users/[0-9]+/wallpaper_orig u:object_r:wallpaper_file:s0 |
rpcraig | c5baaff | 2012-11-30 10:41:14 -0500 | [diff] [blame] | 490 | /data/system/users/[0-9]+/wallpaper u:object_r:wallpaper_file:s0 |
Jeff Sharkey | 62bb52c | 2016-02-22 17:50:01 -0700 | [diff] [blame] | 491 | |
| 492 | # Ringtone files |
| 493 | /data/system_de/[0-9]+/ringtones(/.*)? u:object_r:ringtone_file:s0 |
| 494 | |
Makoto Onuki | 085c169 | 2016-03-08 15:06:44 -0800 | [diff] [blame] | 495 | # ShortcutManager icons, e.g. |
| 496 | # /data/system_ce/0/shortcut_service/bitmaps/com.example.app/1457472879282.png |
| 497 | /data/system_ce/[0-9]+/shortcut_service/bitmaps(/.*)? u:object_r:shortcut_manager_icons:s0 |
| 498 | |
Oleksandr Peletskyi | 33fe478 | 2016-02-25 16:37:06 +0100 | [diff] [blame] | 499 | # User icon files |
| 500 | /data/system/users/[0-9]+/photo.png u:object_r:icon_file:s0 |
| 501 | |
Paul Crowley | 5b962cf | 2017-10-13 14:54:32 -0700 | [diff] [blame] | 502 | # vold per-user data |
| 503 | /data/misc_de/[0-9]+/vold(/.*)? u:object_r:vold_data_file:s0 |
| 504 | /data/misc_ce/[0-9]+/vold(/.*)? u:object_r:vold_data_file:s0 |
| 505 | |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 506 | ############################# |
| 507 | # efs files |
| 508 | # |
| 509 | /efs(/.*)? u:object_r:efs_file:s0 |
Jeff Sharkey | 62bb52c | 2016-02-22 17:50:01 -0700 | [diff] [blame] | 510 | |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 511 | ############################# |
| 512 | # Cache files |
| 513 | # |
| 514 | /cache(/.*)? u:object_r:cache_file:s0 |
Felipe Leme | 549ccf7 | 2015-12-22 12:37:17 -0800 | [diff] [blame] | 515 | /cache/recovery(/.*)? u:object_r:cache_recovery_file:s0 |
Christopher Tate | b8104a4 | 2016-01-28 11:30:41 -0800 | [diff] [blame] | 516 | # General backup/restore interchange with apps |
| 517 | /cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0 |
| 518 | # LocalTransport (backup) uses this subtree |
| 519 | /cache/backup(/.*)? u:object_r:cache_private_backup_file:s0 |
| 520 | |
Patrick Tjin | ad7a0ad | 2016-05-13 15:22:44 -0700 | [diff] [blame] | 521 | /data/cache(/.*)? u:object_r:cache_file:s0 |
| 522 | /data/cache/recovery(/.*)? u:object_r:cache_recovery_file:s0 |
| 523 | # General backup/restore interchange with apps |
| 524 | /data/cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0 |
| 525 | # LocalTransport (backup) uses this subtree |
| 526 | /data/cache/backup(/.*)? u:object_r:cache_private_backup_file:s0 |
| 527 | |
Joel Galenson | 87e5116 | 2017-07-27 12:23:00 -0700 | [diff] [blame] | 528 | ############################# |
Paul Crowley | bb3ba3e | 2018-05-17 10:15:53 -0700 | [diff] [blame] | 529 | # Metadata files |
| 530 | # |
| 531 | /metadata(/.*)? u:object_r:metadata_file:s0 |
| 532 | /metadata/vold(/.*)? u:object_r:vold_metadata_file:s0 |
| 533 | |
| 534 | ############################# |
rpcraig | e7e65d4 | 2012-07-30 14:20:40 -0400 | [diff] [blame] | 535 | # asec containers |
Jeff Sharkey | be092af | 2014-07-07 10:58:53 -0700 | [diff] [blame] | 536 | /mnt/asec(/.*)? u:object_r:asec_apk_file:s0 |
| 537 | /mnt/asec/[^/]+/[^/]+\.zip u:object_r:asec_public_file:s0 |
| 538 | /mnt/asec/[^/]+/lib(/.*)? u:object_r:asec_public_file:s0 |
| 539 | /data/app-asec(/.*)? u:object_r:asec_image_file:s0 |
Jeff Sharkey | f063f46 | 2015-03-27 11:25:39 -0700 | [diff] [blame] | 540 | |
| 541 | ############################# |
| 542 | # external storage |
| 543 | /mnt/media_rw(/.*)? u:object_r:mnt_media_rw_file:s0 |
| 544 | /mnt/user(/.*)? u:object_r:mnt_user_file:s0 |
Jeff Sharkey | 25725b6 | 2015-08-06 11:52:45 -0700 | [diff] [blame] | 545 | /mnt/runtime(/.*)? u:object_r:storage_file:s0 |
Jeff Sharkey | f063f46 | 2015-03-27 11:25:39 -0700 | [diff] [blame] | 546 | /storage(/.*)? u:object_r:storage_file:s0 |
Tri Vo | 8c1a1b2 | 2018-04-10 20:49:45 -0700 | [diff] [blame] | 547 | |
| 548 | ############################# |
| 549 | # mount point for read-write vendor partitions |
Bowgo Tsai | c287032 | 2018-06-29 10:10:00 +0800 | [diff] [blame] | 550 | /mnt/vendor(/.*)? u:object_r:mnt_vendor_file:s0 |
| 551 | |
| 552 | ############################# |
| 553 | # mount point for read-write product partitions |
| 554 | /mnt/product(/.*)? u:object_r:mnt_product_file:s0 |