blob: 0bf16c8ce7b97114e76429511221ce32e14530da [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001###########################################
2# Root
Daniel Rosenberge6b67442015-07-23 21:08:32 -07003/ u:object_r:rootfs:s0
Colin Cross92b9aa02012-12-20 15:26:02 -08004
5# Data files
Daniel Rosenberge6b67442015-07-23 21:08:32 -07006/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 Cross92b9aa02012-12-20 15:26:02 -080015
16# Executables
Daniel Rosenberge6b67442015-07-23 21:08:32 -070017/charger u:object_r:rootfs:s0
18/init u:object_r:init_exec:s0
19/sbin(/.*)? u:object_r:rootfs:s0
Colin Cross92b9aa02012-12-20 15:26:02 -080020
21# Empty directories
Daniel Rosenberge6b67442015-07-23 21:08:32 -070022/lost\+found u:object_r:rootfs:s0
23/acct u:object_r:cgroup:s0
24/config u:object_r:rootfs:s0
25/mnt u:object_r:tmpfs:s0
Alex Deymoa52b5612016-03-01 16:14:45 -080026/postinstall u:object_r:postinstall_mnt_dir:s0
Daniel Rosenberge6b67442015-07-23 21:08:32 -070027/proc u:object_r:rootfs:s0
28/root u:object_r:rootfs:s0
29/sys u:object_r:sysfs:s0
30
31# Symlinks
Nick Kralevichd3143762016-11-19 12:13:02 -080032/bugreports u:object_r:rootfs:s0
Daniel Rosenberge6b67442015-07-23 21:08:32 -070033/d u:object_r:rootfs:s0
34/etc u:object_r:rootfs:s0
35/sdcard u:object_r:rootfs:s0
Colin Cross92b9aa02012-12-20 15:26:02 -080036
37# SELinux policy files
Daniel Rosenberga984a9b2015-09-15 12:53:29 -070038/file_contexts\.bin u:object_r:rootfs:s0
dcashmand225b692016-12-12 09:29:04 -080039/nonplat_file_contexts u:object_r:rootfs:s0
40/plat_file_contexts u:object_r:rootfs:s0
dcashman1faa6442016-11-28 07:20:28 -080041/mapping_sepolicy\.cil u:object_r:rootfs:s0
42/nonplat_sepolicy\.cil u:object_r:rootfs:s0
43/plat_sepolicy\.cil u:object_r:rootfs:s0
Sandeep Patila86316e2016-12-27 16:08:44 -080044/plat_property_contexts u:object_r:property_contexts:s0
45/nonplat_property_contexts u:object_r:property_contexts:s0
Daniel Rosenberge6b67442015-07-23 21:08:32 -070046/seapp_contexts u:object_r:rootfs:s0
Dan Cashman9c038072016-12-22 07:15:18 -080047/nonplat_seapp_contexts u:object_r:rootfs:s0
48/plat_seapp_contexts u:object_r:rootfs:s0
Daniel Rosenberge6b67442015-07-23 21:08:32 -070049/sepolicy u:object_r:rootfs:s0
Sandeep Patila058b562016-12-27 15:10:48 -080050/plat_service_contexts u:object_r:rootfs:s0
51/nonplat_service_contexts u:object_r:rootfs:s0
Colin Cross92b9aa02012-12-20 15:26:02 -080052
Stephen Smalley2dd4e512012-01-04 12:33:27 -050053##########################
54# Devices
55#
56/dev(/.*)? u:object_r:device:s0
Stephen Smalleyd9b8ef42014-01-16 08:47:34 -050057/dev/akm8973.* u:object_r:sensors_device:s0
58/dev/accelerometer u:object_r:sensors_device:s0
Nick Kralevich84ed8902014-06-03 17:01:10 -070059/dev/adf[0-9]* u:object_r:graphics_device:s0
60/dev/adf-interface[0-9]*\.[0-9]* u:object_r:graphics_device:s0
61/dev/adf-overlay-engine[0-9]*\.[0-9]* u:object_r:graphics_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050062/dev/alarm u:object_r:alarm_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050063/dev/ashmem u:object_r:ashmem_device:s0
64/dev/audio.* u:object_r:audio_device:s0
65/dev/binder u:object_r:binder_device:s0
66/dev/block(/.*)? u:object_r:block_device:s0
Stephen Smalley273d7ea2014-09-30 11:37:51 -040067/dev/block/dm-[0-9]+ u:object_r:dm_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050068/dev/block/loop[0-9]* u:object_r:loop_device:s0
Jeff Sharkeyf063f462015-03-27 11:25:39 -070069/dev/block/vold/.+ u:object_r:vold_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050070/dev/block/ram[0-9]* u:object_r:ram_device:s0
William Roberts5bc4a952015-08-25 12:06:39 -070071/dev/block/zram[0-9]* u:object_r:ram_device:s0
Robert Craig65d4f442013-03-27 06:30:25 -040072/dev/bus/usb(.*)? u:object_r:usb_device:s0
Jeff Vander Stoep0474e7c2016-06-13 16:05:34 -070073/dev/cam u:object_r:camera_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050074/dev/console u:object_r:console_device:s0
75/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
76/dev/device-mapper u:object_r:dm_device:s0
Stephen Smalley2cb1b312012-04-03 15:30:28 -040077/dev/eac u:object_r:audio_device:s0
Mark Salyzynd33a9a12016-11-07 15:11:39 -080078/dev/event-log-tags u:object_r:runtime_event_log_tags_file:s0
Stephen Smalleyaf47ebb2013-11-04 09:47:29 -050079/dev/fscklogs(/.*)? u:object_r:fscklogs:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050080/dev/full u:object_r:full_device:s0
William Roberts80ea1d22012-05-31 09:44:51 -040081/dev/fuse u:object_r:fuse_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050082/dev/graphics(/.*)? u:object_r:graphics_device:s0
Alex Klyubin8d688312013-10-03 13:35:56 -070083/dev/hw_random u:object_r:hw_random_device:s0
Martijn Coenen6b952392016-05-24 15:15:23 +020084/dev/hwbinder u:object_r:hwbinder_device:s0
Bruce Beare59019fd2015-10-22 11:51:09 -070085/dev/i2c-[0-9]+ u:object_r:i2c_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050086/dev/input(/.*) u:object_r:input_device:s0
Robert Craigf62af812013-01-30 13:17:14 -050087/dev/iio:device[0-9]+ u:object_r:iio_device:s0
William Roberts07ef7222012-06-19 18:46:16 -070088/dev/ion u:object_r:ion_device:s0
Max Bires9e7a5b02017-01-09 14:57:03 -080089/dev/keychord u:object_r:keychord_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050090/dev/kmem u:object_r:kmem_device:s0
91/dev/log(/.*)? u:object_r:log_device:s0
92/dev/mem u:object_r:kmem_device:s0
93/dev/modem.* u:object_r:radio_device:s0
94/dev/mtd(/.*)? u:object_r:mtd_device:s0
Stephen Smalleyc94e2392012-01-06 10:25:53 -050095/dev/mtp_usb u:object_r:mtp_device:s0
Mark Salyzyn34d32ea2014-12-15 12:01:35 -080096/dev/pmsg0 u:object_r:pmsg_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -050097/dev/pn544 u:object_r:nfc_device:s0
Maxc27c23f2016-12-04 15:11:29 -080098/dev/port u:object_r:port_device:s0
rpcraigd49f7e62012-08-20 06:13:28 -040099/dev/ppp u:object_r:ppp_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500100/dev/ptmx u:object_r:ptmx_device:s0
Stephen Smalleyd9b8ef42014-01-16 08:47:34 -0500101/dev/pvrsrvkm u:object_r:gpu_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500102/dev/kmsg u:object_r:kmsg_device:s0
103/dev/null u:object_r:null_device:s0
104/dev/nvhdcp1 u:object_r:video_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500105/dev/random u:object_r:random_device:s0
hqjiangee5f4002012-07-11 11:21:05 -0700106/dev/rpmsg-omx[0-9] u:object_r:rpmsg_device:s0
107/dev/rproc_user u:object_r:rpmsg_device:s0
dcashman1b4b3b92015-05-21 10:03:16 -0700108/dev/rtc[0-9] u:object_r:rtc_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500109/dev/snd(/.*)? u:object_r:audio_device:s0
Jeff Vander Stoepc7e60742016-10-02 20:20:52 -0700110/dev/snd/audio_timer_device u:object_r:audio_timer_device:s0
111/dev/snd/audio_seq_device u:object_r:audio_seq_device:s0
Stephen Smalley081aed22013-12-02 09:02:22 -0500112/dev/socket(/.*)? u:object_r:socket_device:s0
Stephen Smalley61c80d52012-11-16 09:06:47 -0500113/dev/socket/adbd u:object_r:adbd_socket:s0
Casper Bondefcdd3542015-03-19 10:56:26 +0100114/dev/socket/sap_uim_socket[0-9] u:object_r:sap_uim_socket:s0
Paul Lawrence3aac44e2015-06-03 14:09:21 -0700115/dev/socket/cryptd u:object_r:vold_socket:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500116/dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0
Nick Kralevich09e6abd2013-12-13 22:19:45 -0800117/dev/socket/dumpstate u:object_r:dumpstate_socket:s0
Sreeram Ramachandran56ecf4b2014-05-01 11:12:10 -0700118/dev/socket/fwmarkd u:object_r:fwmarkd_socket:s0
Nick Kralevich2b392fc2013-12-05 16:55:34 -0800119/dev/socket/lmkd u:object_r:lmkd_socket:s0
Mark Salyzyn8ed750e2013-11-12 15:34:52 -0800120/dev/socket/logd u:object_r:logd_socket:s0
121/dev/socket/logdr u:object_r:logdr_socket:s0
122/dev/socket/logdw u:object_r:logdw_socket:s0
Stephen Smalley4caf8c92013-09-19 15:09:38 -0400123/dev/socket/mdns u:object_r:mdns_socket:s0
Stephen Smalley96ff4c02014-02-24 13:04:49 -0500124/dev/socket/mdnsd u:object_r:mdnsd_socket:s0
Stephen Smalley3dad7b62014-03-05 09:50:08 -0500125/dev/socket/mtpd u:object_r:mtpd_socket:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500126/dev/socket/netd u:object_r:netd_socket:s0
127/dev/socket/property_service u:object_r:property_socket:s0
Robert Craig18b5f872013-01-07 09:21:18 -0500128/dev/socket/racoon u:object_r:racoon_socket:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500129/dev/socket/rild u:object_r:rild_socket:s0
130/dev/socket/rild-debug u:object_r:rild_debug_socket:s0
Josh Gaocb3eb4e2016-10-19 14:39:30 -0700131/dev/socket/tombstoned_crash u:object_r:tombstoned_crash_socket:s0
132/dev/socket/tombstoned_intercept u:object_r:tombstoned_intercept_socket:s0
Tao Baoc285cad2016-02-26 10:30:12 -0800133/dev/socket/uncrypt u:object_r:uncrypt_socket:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500134/dev/socket/vold u:object_r:vold_socket:s0
Robert Sesekdc43f7c2016-09-21 17:01:50 -0400135/dev/socket/webview_zygote u:object_r:webview_zygote_socket:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500136/dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0
137/dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0
138/dev/socket/zygote u:object_r:zygote_socket:s0
Nick Kralevich7cba5da2014-05-22 16:48:20 -0700139/dev/socket/zygote_secondary u:object_r:zygote_socket:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500140/dev/spdif_out.* u:object_r:audio_device:s0
141/dev/tegra.* u:object_r:video_device:s0
rpcraiga3636832012-08-24 08:11:09 -0400142/dev/tf_driver u:object_r:tee_device:s0
Stephen Smalley74ba8c82013-04-05 14:22:27 -0400143/dev/tty u:object_r:owntty_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500144/dev/tty[0-9]* u:object_r:tty_device:s0
145/dev/ttyS[0-9]* u:object_r:serial_device:s0
Robert Craig18b5f872013-01-07 09:21:18 -0500146/dev/tun u:object_r:tun_device:s0
147/dev/uhid u:object_r:uhid_device:s0
Stephen Smalleyb3c48b62013-10-23 13:50:19 -0400148/dev/uinput u:object_r:uhid_device:s0
Stephen Smalley9fc0d402014-03-26 15:37:54 -0400149/dev/uio[0-9]* u:object_r:uio_device:s0
Nick Kralevich5eadcb82016-11-19 12:52:54 -0800150/dev/urandom u:object_r:random_device:s0
Robert Craigf62af812013-01-30 13:17:14 -0500151/dev/usb_accessory u:object_r:usbaccessory_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500152/dev/vcs[0-9a-z]* u:object_r:vcs_device:s0
153/dev/video[0-9]* u:object_r:video_device:s0
rpcraigbac99922012-12-03 06:07:45 -0500154/dev/watchdog u:object_r:watchdog_device:s0
hqjiang4c06d272012-07-19 11:07:04 -0700155/dev/xt_qtaguid u:object_r:qtaguid_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500156/dev/zero u:object_r:zero_device:s0
Geremy Condrac529c662013-02-28 17:33:16 -0800157/dev/__properties__ u:object_r:properties_device:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500158#############################
159# System files
160#
161/system(/.*)? u:object_r:system_file:s0
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +0900162/system/bin/atrace u:object_r:atrace_exec:s0
Stephen Smalley8a0c25e2014-09-23 09:11:30 -0400163/system/bin/e2fsck -- u:object_r:fsck_exec:s0
Nick Kralevich57a17d12014-10-20 10:36:49 -0700164/system/bin/fsck\.f2fs -- u:object_r:fsck_exec:s0
Jeff Sharkeyf063f462015-03-27 11:25:39 -0700165/system/bin/fsck_msdos -- u:object_r:fsck_exec:s0
liminghaob1b872c2016-07-22 14:18:47 +0800166/system/bin/tune2fs -- u:object_r:fsck_exec:s0
Stephen Smalley8a0c25e2014-09-23 09:11:30 -0400167/system/bin/toolbox -- u:object_r:toolbox_exec:s0
Elliott Hughes367ef962014-12-17 16:03:01 -0800168/system/bin/toybox -- u:object_r:toolbox_exec:s0
Stephen Smalley54e9bc42014-09-04 08:44:49 -0400169/system/bin/logcat -- u:object_r:logcat_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500170/system/bin/sh -- u:object_r:shell_exec:s0
Stephen Smalleye8848722012-11-13 13:00:05 -0500171/system/bin/run-as -- u:object_r:runas_exec:s0
Stephen Smalleyacde43f2013-12-11 15:17:53 -0500172/system/bin/bootanimation u:object_r:bootanim_exec:s0
James Hawkins2e8d71c2016-01-25 16:23:10 -0800173/system/bin/bootstat u:object_r:bootstat_exec:s0
Narayan Kamath5c655872014-05-14 17:13:24 +0100174/system/bin/app_process32 u:object_r:zygote_exec:s0
Nick Kralevich6bf9bbc2014-04-04 09:45:57 -0700175/system/bin/app_process64 u:object_r:zygote_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500176/system/bin/servicemanager u:object_r:servicemanager_exec:s0
Martijn Coenen6b952392016-05-24 15:15:23 +0200177/system/bin/hwservicemanager u:object_r:hwservicemanager_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500178/system/bin/surfaceflinger u:object_r:surfaceflinger_exec:s0
179/system/bin/drmserver u:object_r:drmserver_exec:s0
Nick Kralevich09e6abd2013-12-13 22:19:45 -0800180/system/bin/dumpstate u:object_r:dumpstate_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500181/system/bin/vold u:object_r:vold_exec:s0
182/system/bin/netd u:object_r:netd_exec:s0
Ningyuan Wang3cbf14a2016-05-19 19:31:20 -0700183/system/bin/wificond u:object_r:wificond_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500184/system/bin/rild u:object_r:rild_exec:s0
Marco Nelissenb03831f2015-09-09 10:48:04 -0700185/system/bin/audioserver u:object_r:audioserver_exec:s0
Jeff Tinker0d5bac12016-02-12 09:05:42 -0800186/system/bin/mediadrmserver u:object_r:mediadrmserver_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500187/system/bin/mediaserver u:object_r:mediaserver_exec:s0
Ray Essick39185402017-01-24 12:53:45 -0800188/system/bin/mediametrics u:object_r:mediametrics_exec:s0
Chien-Yu Chene0378302015-12-03 16:10:05 -0800189/system/bin/cameraserver u:object_r:cameraserver_exec:s0
Marco Nelissen0f754ed2015-09-22 10:56:03 -0700190/system/bin/mediaextractor u:object_r:mediaextractor_exec:s0
Marco Nelissenc3ba2e52016-02-02 16:10:37 -0800191/system/bin/mediacodec u:object_r:mediacodec_exec:s0
Stephen Smalley96ff4c02014-02-24 13:04:49 -0500192/system/bin/mdnsd u:object_r:mdnsd_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500193/system/bin/installd u:object_r:installd_exec:s0
Andreas Gampee5d8a942016-03-29 15:08:20 -0700194/system/bin/otapreopt_chroot u:object_r:otapreopt_chroot_exec:s0
Andreas Gampea3a0bb42016-07-09 11:57:13 -0700195/system/bin/otapreopt_slot u:object_r:otapreopt_slot_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500196/system/bin/keystore u:object_r:keystore_exec:s0
Jim Miller264eb652015-05-12 15:16:06 -0700197/system/bin/fingerprintd u:object_r:fingerprintd_exec:s0
Andres Moralese2079862015-04-03 16:46:33 -0700198/system/bin/gatekeeperd u:object_r:gatekeeperd_exec:s0
Josh Gaocb3eb4e2016-10-19 14:39:30 -0700199/system/bin/crash_dump32 u:object_r:crash_dump_exec:s0
200/system/bin/crash_dump64 u:object_r:crash_dump_exec:s0
201/system/bin/tombstoned u:object_r:tombstoned_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500202/system/bin/wpa_supplicant u:object_r:wpa_exec:s0
Mark Salyzyn16fe52c2016-03-16 08:11:49 -0700203/system/bin/recovery-persist u:object_r:recovery_persist_exec:s0
204/system/bin/recovery-refresh u:object_r:recovery_refresh_exec:s0
William Roberts80ea1d22012-05-31 09:44:51 -0400205/system/bin/sdcard u:object_r:sdcardd_exec:s0
rpcraig867ae052012-08-15 06:25:14 -0400206/system/bin/dhcpcd u:object_r:dhcp_exec:s0
Samuel Tan72388332015-08-26 18:18:21 -0700207/system/bin/dhcpcd-6.8.2 u:object_r:dhcp_exec:s0
rpcraigd49f7e62012-08-20 06:13:28 -0400208/system/bin/mtpd u:object_r:mtp_exec:s0
209/system/bin/pppd u:object_r:ppp_exec:s0
rpcraiga3636832012-08-24 08:11:09 -0400210/system/bin/tf_daemon u:object_r:tee_exec:s0
Robert Craig18b5f872013-01-07 09:21:18 -0500211/system/bin/racoon u:object_r:racoon_exec:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500212/system/xbin/su u:object_r:su_exec:s0
Than McIntosh38d02472015-04-30 15:27:36 -0400213/system/xbin/perfprofd u:object_r:perfprofd_exec:s0
Nick Kralevichdbd28d92013-06-27 15:11:02 -0700214/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
Sandeep Patildc082452016-11-01 13:49:10 -0700215/system/bin/healthd u:object_r:healthd_exec:s0
Nick Kralevichdbd28d92013-06-27 15:11:02 -0700216/system/bin/hostapd u:object_r:hostapd_exec:s0
Lorenzo Colittiab7dfab2013-08-05 15:32:56 +0900217/system/bin/clatd u:object_r:clatd_exec:s0
Nick Kralevich2b392fc2013-12-05 16:55:34 -0800218/system/bin/lmkd u:object_r:lmkd_exec:s0
Nick Kralevichcaa6a322013-12-15 12:50:00 -0800219/system/bin/inputflinger u:object_r:inputflinger_exec:s0
Mark Salyzyn8ed750e2013-11-12 15:34:52 -0800220/system/bin/logd u:object_r:logd_exec:s0
Nick Kralevich96eeb1e2014-02-19 13:33:32 -0800221/system/bin/uncrypt u:object_r:uncrypt_exec:s0
Tao Bao14b6f442015-12-04 17:48:50 -0800222/system/bin/update_verifier u:object_r:update_verifier_exec:s0
Nick Kralevichb4adc622014-06-17 08:49:17 -0700223/system/bin/logwrapper u:object_r:system_file:s0
Nick Kralevichbf8a37b2014-06-20 18:11:11 -0700224/system/bin/vdc u:object_r:vdc_exec:s0
Alex Lightb7ebb322016-06-22 15:47:09 -0700225/system/bin/cppreopts.sh u:object_r:cppreopts_exec:s0
226/system/bin/preopt2cachename u:object_r:preopt2cachename_exec:s0
Nick Kralevich9f6af082014-07-02 16:18:16 -0700227/system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0
Andreas Gampe47b373a2016-08-25 19:36:49 -0700228/system/bin/dex2oat(d)? u:object_r:dex2oat_exec:s0
Calin Juravlee5a1f642017-01-17 20:31:31 -0800229/system/bin/dexoptanalyzer u:object_r:dexoptanalyzer_exec:s0
Alex Lightfbc8ec22014-08-05 09:15:01 -0700230# patchoat executable has (essentially) the same requirements as dex2oat.
Andreas Gampe47b373a2016-08-25 19:36:49 -0700231/system/bin/patchoat(d)? u:object_r:dex2oat_exec:s0
Calin Juravle89625c92016-02-01 19:28:39 +0000232/system/bin/profman u:object_r:profman_exec:s0
Jeff Sharkeyf063f462015-03-27 11:25:39 -0700233/system/bin/sgdisk u:object_r:sgdisk_exec:s0
234/system/bin/blkid u:object_r:blkid_exec:s0
Neil Fullere6475782015-04-07 13:35:21 +0100235/system/bin/tzdatacheck u:object_r:tzdatacheck_exec:s0
Stephen Smalleyb335e382015-06-19 13:47:26 -0400236/system/bin/idmap u:object_r:idmap_exec:s0
David Zeuthena10f7892015-10-05 17:04:39 -0400237/system/bin/update_engine u:object_r:update_engine_exec:s0
Sen Jiangd33155b2015-11-20 16:09:14 -0800238/system/bin/bspatch u:object_r:update_engine_exec:s0
ynwang9fa88232016-06-17 15:05:10 -0700239/system/bin/storaged u:object_r:storaged_exec:s0
Robert Sesekdc43f7c2016-09-21 17:01:50 -0400240/system/bin/webview_zygote32 u:object_r:webview_zygote_exec:s0
241/system/bin/webview_zygote64 u:object_r:webview_zygote_exec:s0
Steven Moreland29eed9f2016-12-13 12:17:09 -0800242/system/bin/hw/android\.hardware\.audio@2\.0-service u:object_r:hal_audio_default_exec:s0
Jim Miller54e0e5a2016-12-15 19:46:43 -0800243/system/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service u:object_r:hal_fingerprint_default_exec:s0
Alex Klyubine1ff7e82017-01-20 10:39:32 -0800244/system/bin/hw/android\.hardware\.bluetooth@1\.0-service u:object_r:hal_bluetooth_default_exec:s0
245/system/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_boot_exec:s0
246/system/bin/hw/android\.hardware\.camera\.provider@2\.4-service u:object_r:hal_camera_default_exec:s0
Jiyong Parkebec1aa2017-01-19 11:41:56 +0900247/system/bin/hw/android\.hardware\.configstore@1\.0-service u:object_r:hal_configstore_default_exec:s0
Alex Klyubine1ff7e82017-01-20 10:39:32 -0800248/system/bin/hw/android\.hardware\.contexthub@1\.0-service u:object_r:hal_contexthub_default_exec:s0
Jeff Tinkerc86f42b2017-01-01 12:01:18 -0800249/system/bin/hw/android\.hardware\.drm@1\.0-service u:object_r:hal_drm_default_exec:s0
Steven Morelandd86a30a2016-12-01 09:39:10 -0800250/system/bin/hw/android\.hardware\.dumpstate@1\.0-service u:object_r:hal_dumpstate_default_exec:s0
Alexey Polyudova9ce2082016-10-20 11:20:25 -0700251/system/bin/hw/android\.hardware\.gatekeeper@1\.0-service u:object_r:hal_gatekeeper_default_exec:s0
Hridya Valsaraju953c4392016-12-09 08:53:42 -0800252/system/bin/hw/android\.hardware\.gnss@1\.0-service u:object_r:hal_gnss_default_exec:s0
Steven Moreland29eed9f2016-12-13 12:17:09 -0800253/system/bin/hw/android\.hardware\.graphics\.allocator@2\.0-service u:object_r:hal_graphics_allocator_default_exec:s0
254/system/bin/hw/android\.hardware\.graphics\.composer@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
Sandeep Patilc82cf892016-12-16 13:20:25 -0800255/system/bin/hw/android\.hardware\.health@1\.0-service u:object_r:hal_health_default_exec:s0
Steven Moreland29eed9f2016-12-13 12:17:09 -0800256/system/bin/hw/android\.hardware\.ir@1\.0-service u:object_r:hal_ir_default_exec:s0
Janis Danisevskise8acd762017-01-27 15:00:27 -0800257/system/bin/hw/android\.hardware\.keymaster@3\.0-service u:object_r:hal_keymaster_default_exec:s0
dcashman3319d5e2016-11-15 10:05:55 -0800258/system/bin/hw/android\.hardware\.light@2\.0-service u:object_r:hal_light_default_exec:s0
Steven Moreland29eed9f2016-12-13 12:17:09 -0800259/system/bin/hw/android\.hardware\.memtrack@1\.0-service u:object_r:hal_memtrack_default_exec:s0
260/system/bin/hw/android\.hardware\.nfc@1\.0-service u:object_r:hal_nfc_default_exec:s0
261/system/bin/hw/android\.hardware\.power@1\.0-service u:object_r:hal_power_default_exec:s0
Ashutosh Joshic9d46d42016-11-29 12:26:51 -0800262/system/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0
Steven Moreland29eed9f2016-12-13 12:17:09 -0800263/system/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0
Badhri Jagan Sridharanae206f12017-01-12 17:18:52 -0800264/system/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0
Steven Moreland29eed9f2016-12-13 12:17:09 -0800265/system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
266/system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
267/system/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0
Steven Moreland72d18122016-12-15 12:49:38 -0800268/system/bin/hw/android\.hidl\.memory@1\.0-service u:object_r:hal_allocator_exec:s0
Nick Kralevich9f6af082014-07-02 16:18:16 -0700269
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500270#############################
Colin Cross46495242013-03-20 12:03:04 -0700271# Vendor files
272#
273/vendor(/.*)? u:object_r:system_file:s0
Tom Cherryd2522cb2015-03-18 13:11:11 -0700274
275#############################
Nick Kralevich2025fd12015-05-06 16:33:56 -0700276# OEM and ODM files
Tom Cherryd2522cb2015-03-18 13:11:11 -0700277#
Nick Kralevich2025fd12015-05-06 16:33:56 -0700278/odm(/.*)? u:object_r:system_file:s0
279/oem(/.*)? u:object_r:oemfs:s0
280
Tom Cherryd2522cb2015-03-18 13:11:11 -0700281
Colin Cross46495242013-03-20 12:03:04 -0700282#############################
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500283# Data files
284#
Jeff Sharkey73d9c2a2015-04-06 16:21:54 -0700285# NOTE: When modifying existing label rules, changes may also need to
286# propagate to the "Expanded data files" section.
287#
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500288/data(/.*)? u:object_r:system_data_file:s0
Stephen Smalleybaf49bd2014-05-12 11:18:21 -0400289/data/.layout_version u:object_r:install_data_file:s0
Paul Lawrence38af1da2015-03-11 15:44:14 -0700290/data/unencrypted(/.*)? u:object_r:unencrypted_data_file:s0
rpcraig1c8464e2012-12-04 08:13:58 -0500291/data/backup(/.*)? u:object_r:backup_data_file:s0
292/data/secure/backup(/.*)? u:object_r:backup_data_file:s0
Stephen Smalleya7e4ace2014-02-04 14:29:51 -0500293/data/system/ndebugsocket u:object_r:system_ndebug_socket:s0
Stephen Smalleyc83d0082012-03-07 14:59:01 -0500294/data/drm(/.*)? u:object_r:drm_data_file:s0
Nick Kralevichfad4d5f2014-06-16 14:19:31 -0700295/data/resource-cache(/.*)? u:object_r:resourcecache_data_file:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500296/data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
Andreas Gampe47ebae12015-12-02 21:23:30 -0800297/data/ota(/.*)? u:object_r:ota_data_file:s0
Tao Baoe06ed7d2016-05-24 21:07:48 -0700298/data/ota_package(/.*)? u:object_r:ota_package_file:s0
Nick Kralevich973877d2014-10-20 21:56:02 -0700299/data/adb(/.*)? u:object_r:adb_data_file:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500300/data/anr(/.*)? u:object_r:anr_data_file:s0
Jeff Sharkeybe092af2014-07-07 10:58:53 -0700301/data/app(/.*)? u:object_r:apk_data_file:s0
Fyodor Kupolovb87a4b12015-03-03 18:19:12 -0800302/data/app/[^/]+/oat(/.*)? u:object_r:dalvikcache_data_file:s0
303/data/app/vmdl[^/]+\.tmp(/.*)? u:object_r:apk_tmp_file:s0
304/data/app/vmdl[^/]+\.tmp/oat(/.*)? u:object_r:dalvikcache_data_file:s0
Jeff Sharkeybe092af2014-07-07 10:58:53 -0700305/data/app-private(/.*)? u:object_r:apk_private_data_file:s0
306/data/app-private/vmdl.*\.tmp(/.*)? u:object_r:apk_private_tmp_file:s0
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500307/data/tombstones(/.*)? u:object_r:tombstone_data_file:s0
Geremy Condrae69552b2013-03-26 18:00:13 +0000308/data/local/tmp(/.*)? u:object_r:shell_data_file:s0
Stephen Smalleye13fabd2013-12-17 14:39:35 -0500309/data/media(/.*)? u:object_r:media_rw_data_file:s0
rpcraigd362cdf2014-01-07 21:53:01 -0500310/data/mediadrm(/.*)? u:object_r:media_data_file:s0
Nick Kraleviche9d261f2015-10-28 16:45:58 -0700311/data/nativetest(/.*)? u:object_r:nativetest_data_file:s0
Myles Watson926dc332017-01-12 14:18:50 -0800312/data/nativetest64(/.*)? u:object_r:nativetest_data_file:s0
Stephen Smalleyad0d0fc2014-05-29 09:22:16 -0400313/data/property(/.*)? u:object_r:property_data_file:s0
Fyodor Kupolov49ac2a32016-05-20 11:08:45 -0700314/data/preloads(/.*)? u:object_r:preloads_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800315
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500316# Misc data
Stephen Smalley55540752013-09-30 13:54:09 -0400317/data/misc/adb(/.*)? u:object_r:adb_keys_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800318/data/misc/audio(/.*)? u:object_r:audio_data_file:s0
Glenn Kasten962e3a62016-02-23 16:16:16 -0800319/data/misc/audioserver(/.*)? u:object_r:audioserver_data_file:s0
Mikhail Naganov2ff6b4d2016-08-04 13:40:23 -0700320/data/misc/audiohal(/.*)? u:object_r:audiohal_data_file:s0
James Hawkins39c198a2016-01-19 10:54:20 -0800321/data/misc/bootstat(/.*)? u:object_r:bootstat_data_file:s0
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +0900322/data/misc/boottrace(/.*)? u:object_r:boottrace_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800323/data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
Ajay Panickera4567262016-09-16 12:55:42 -0700324/data/misc/bluetooth/logs(/.*)? u:object_r:bluetooth_logs_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800325/data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0
Stephen Smalleya7e4ace2014-02-04 14:29:51 -0500326/data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0
327/data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800328/data/misc/camera(/.*)? u:object_r:camera_data_file:s0
329/data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
Samuel Tan72388332015-08-26 18:18:21 -0700330/data/misc/dhcp-6.8.2(/.*)? u:object_r:dhcp_data_file:s0
Nick Kralevich367757d2015-04-17 17:56:31 -0700331/data/misc/gatekeeper(/.*)? u:object_r:gatekeeper_data_file:s0
Robin Lee51bfecf2014-10-13 12:10:08 +0100332/data/misc/keychain(/.*)? u:object_r:keychain_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800333/data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0
Mark Salyzyn0d22c6c2015-05-26 15:12:45 -0700334/data/misc/logd(/.*)? u:object_r:misc_logd_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800335/data/misc/media(/.*)? u:object_r:media_data_file:s0
Sreeram Ramachandran65edb752014-07-07 22:04:57 -0700336/data/misc/net(/.*)? u:object_r:net_data_file:s0
Mark Salyzyn16fe52c2016-03-16 08:11:49 -0700337/data/misc/recovery(/.*)? u:object_r:recovery_data_file:s0
Torne (Richard Coles)9786af22014-05-23 11:01:58 +0100338/data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0
Robert Craiga00fb292014-03-18 13:29:51 -0400339/data/misc/sms(/.*)? u:object_r:radio_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800340/data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0
Robin Lee51bfecf2014-10-13 12:10:08 +0100341/data/misc/user(/.*)? u:object_r:misc_user_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800342/data/misc/vpn(/.*)? u:object_r:vpn_data_file:s0
343/data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0
Stephen Smalley418e2ab2014-01-29 13:45:51 -0500344/data/misc/wifi/sockets(/.*)? u:object_r:wpa_socket:s0
345/data/misc/wifi/sockets/wpa_ctrl.* u:object_r:system_wpa_socket:s0
Christopher Wileyd29c1a02016-07-11 11:20:33 -0700346/data/misc/wifi/hostapd(/.*)? u:object_r:hostapd_socket:s0
Nick Kralevich7466f9b2013-12-12 15:32:42 -0800347/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0
Jeff Sharkey4423ecd2015-03-31 15:03:13 -0700348/data/misc/vold(/.*)? u:object_r:vold_data_file:s0
Dehao Chen34a468f2015-05-05 15:11:44 -0700349/data/misc/perfprofd(/.*)? u:object_r:perfprofd_data_file:s0
David Zeuthena10f7892015-10-05 17:04:39 -0400350/data/misc/update_engine(/.*)? u:object_r:update_engine_data_file:s0
Nick Kralevich8a06c072015-04-07 16:40:44 -0700351/data/system/heapdump(/.*)? u:object_r:heapdump_data_file:s0
Calin Juravlef255d772015-11-10 18:49:57 +0000352/data/misc/trace(/.*)? u:object_r:method_trace_data_file:s0
Calin Juravle89625c92016-02-01 19:28:39 +0000353# TODO(calin) label profile reference differently so that only
354# profman run as a special user can write to them
355/data/misc/profiles/cur(/.*)? u:object_r:user_profile_data_file:s0
Calin Juravle837bc422016-02-23 16:34:23 +0000356/data/misc/profiles/cur/[0-9]+/foreign-dex(/.*)? u:object_r:user_profile_foreign_dex_data_file:s0
Calin Juravle89625c92016-02-01 19:28:39 +0000357/data/misc/profiles/ref(/.*)? u:object_r:user_profile_data_file:s0
David Sehra5d07922016-05-27 12:41:35 -0700358/data/misc/profman(/.*)? u:object_r:profman_dump_data_file:s0
Nick Kralevich6a32eec2013-12-12 15:23:10 -0800359
Jim Miller264eb652015-05-12 15:16:06 -0700360# Fingerprint data
361/data/system/users/[0-9]+/fpdata(/.*)? u:object_r:fingerprintd_data_file:s0
362
Yongqin Liucc38e6d2014-12-05 13:40:22 +0800363# Bootchart data
364/data/bootchart(/.*)? u:object_r:bootchart_data_file:s0
365
Jeff Sharkey73d9c2a2015-04-06 16:21:54 -0700366#############################
367# Expanded data files
368#
369/mnt/expand(/.*)? u:object_r:mnt_expand_file:s0
370/mnt/expand/[^/]+(/.*)? u:object_r:system_data_file:s0
371/mnt/expand/[^/]+/app(/.*)? u:object_r:apk_data_file:s0
372/mnt/expand/[^/]+/app/[^/]+/oat(/.*)? u:object_r:dalvikcache_data_file:s0
373/mnt/expand/[^/]+/app/vmdl[^/]+\.tmp(/.*)? u:object_r:apk_tmp_file:s0
374/mnt/expand/[^/]+/app/vmdl[^/]+\.tmp/oat(/.*)? u:object_r:dalvikcache_data_file:s0
375/mnt/expand/[^/]+/local/tmp(/.*)? u:object_r:shell_data_file:s0
376/mnt/expand/[^/]+/media(/.*)? u:object_r:media_rw_data_file:s0
Jeff Sharkeyc9605962015-05-14 20:55:31 -0700377/mnt/expand/[^/]+/misc/vold(/.*)? u:object_r:vold_data_file:s0
Jeff Sharkey73d9c2a2015-04-06 16:21:54 -0700378
Nick Kralevichca62a8b2014-10-31 12:40:12 -0700379# coredump directory for userdebug/eng devices
380/cores(/.*)? u:object_r:coredump_file:s0
381
Christopher Tatefdeeb592016-01-26 16:39:34 -0800382# Wallpaper files
Christopher Tate2e1556d2016-02-10 19:39:12 -0800383/data/system/users/[0-9]+/wallpaper_lock_orig u:object_r:wallpaper_file:s0
384/data/system/users/[0-9]+/wallpaper_lock u:object_r:wallpaper_file:s0
Christopher Tatefdeeb592016-01-26 16:39:34 -0800385/data/system/users/[0-9]+/wallpaper_orig u:object_r:wallpaper_file:s0
rpcraigc5baaff2012-11-30 10:41:14 -0500386/data/system/users/[0-9]+/wallpaper u:object_r:wallpaper_file:s0
Jeff Sharkey62bb52c2016-02-22 17:50:01 -0700387
388# Ringtone files
389/data/system_de/[0-9]+/ringtones(/.*)? u:object_r:ringtone_file:s0
390
Makoto Onuki085c1692016-03-08 15:06:44 -0800391# ShortcutManager icons, e.g.
392# /data/system_ce/0/shortcut_service/bitmaps/com.example.app/1457472879282.png
393/data/system_ce/[0-9]+/shortcut_service/bitmaps(/.*)? u:object_r:shortcut_manager_icons:s0
394
Oleksandr Peletskyi33fe4782016-02-25 16:37:06 +0100395# User icon files
396/data/system/users/[0-9]+/photo.png u:object_r:icon_file:s0
397
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500398#############################
399# efs files
400#
401/efs(/.*)? u:object_r:efs_file:s0
Jeff Sharkey62bb52c2016-02-22 17:50:01 -0700402
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500403#############################
404# Cache files
405#
406/cache(/.*)? u:object_r:cache_file:s0
Felipe Leme549ccf72015-12-22 12:37:17 -0800407/cache/recovery(/.*)? u:object_r:cache_recovery_file:s0
Christopher Tateb8104a42016-01-28 11:30:41 -0800408# General backup/restore interchange with apps
409/cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0
410# LocalTransport (backup) uses this subtree
411/cache/backup(/.*)? u:object_r:cache_private_backup_file:s0
412
Patrick Tjinad7a0ad2016-05-13 15:22:44 -0700413/data/cache(/.*)? u:object_r:cache_file:s0
414/data/cache/recovery(/.*)? u:object_r:cache_recovery_file:s0
415# General backup/restore interchange with apps
416/data/cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0
417# LocalTransport (backup) uses this subtree
418/data/cache/backup(/.*)? u:object_r:cache_private_backup_file:s0
419
Stephen Smalley2dd4e512012-01-04 12:33:27 -0500420#############################
421# sysfs files
422#
Steven Moreland62aee3b2017-01-04 17:56:04 -0800423/sys/class/leds(/.*)? u:object_r:sysfs_leds:s0
Stephen Smalleyf7948232012-03-19 15:56:01 -0400424/sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
Nick Kralevich967f39a2013-10-30 14:12:21 -0700425/sys/devices/system/cpu(/.*)? u:object_r:sysfs_devices_system_cpu:s0
dcashman36f255f2016-01-04 14:23:23 -0800426/sys/devices/virtual/block/zram\d+(/.*)? u:object_r:sysfs_zram:s0
427/sys/devices/virtual/block/zram\d+/uevent u:object_r:sysfs_zram_uevent:s0
dcashman85c0f8a2016-03-11 15:23:49 -0800428/sys/devices/virtual/misc/hw_random(/.*)? u:object_r:sysfs_hwrandom:s0
William Robertsec7d39b2013-09-28 18:46:21 -0400429/sys/power/wake_lock -- u:object_r:sysfs_wake_lock:s0
430/sys/power/wake_unlock -- u:object_r:sysfs_wake_lock:s0
Stephen Smalley7adb9992013-12-06 09:31:40 -0500431/sys/kernel/uevent_helper -- u:object_r:usermodehelper:s0
Nick Kralevich5467fce2014-02-13 12:19:50 -0800432/sys/module/lowmemorykiller(/.*)? -- u:object_r:sysfs_lowmemorykiller:s0
Christopher Wiley97db27d2016-06-30 14:23:12 -0700433/sys/module/wlan/parameters/fwpath u:object_r:sysfs_wlan_fwpath:s0
Prashant Malanib32b4a12016-10-11 11:01:49 -0700434/sys/devices/virtual/timed_output/vibrator/enable u:object_r:sysfs_vibrator:s0
Nick Kralevich5467fce2014-02-13 12:19:50 -0800435
rpcraige7e65d42012-07-30 14:20:40 -0400436#############################
Nick Kralevich44826cb2015-12-07 17:02:31 -0800437# debugfs files
438#
mukesh agrawal3a6bc682016-05-17 15:32:04 -0700439/sys/kernel/debug/mmc0(/.*)? u:object_r:debugfs_mmc:s0
Paul Lawrenceef2a1702017-01-18 10:33:34 -0800440/sys/kernel(/debug)?/tracing(/.*)? u:object_r:debugfs_tracing:s0
441/sys/kernel(/debug)?/tracing/trace_marker u:object_r:debugfs_trace_marker:s0
442/sys/kernel(/debug)?/tracing/instances(/.*)? u:object_r:debugfs_tracing_instances:s0
443/sys/kernel(/debug)?/tracing/instances/wifi/free_buffer u:object_r:debugfs_wifi_tracing:s0
444/sys/kernel(/debug)?/tracing/instances/wifi/trace u:object_r:debugfs_wifi_tracing:s0
445/sys/kernel(/debug)?/tracing/instances/wifi/tracing_on u:object_r:debugfs_wifi_tracing:s0
Nick Kralevich44826cb2015-12-07 17:02:31 -0800446
447#############################
rpcraige7e65d42012-07-30 14:20:40 -0400448# asec containers
Jeff Sharkeybe092af2014-07-07 10:58:53 -0700449/mnt/asec(/.*)? u:object_r:asec_apk_file:s0
450/mnt/asec/[^/]+/[^/]+\.zip u:object_r:asec_public_file:s0
451/mnt/asec/[^/]+/lib(/.*)? u:object_r:asec_public_file:s0
452/data/app-asec(/.*)? u:object_r:asec_image_file:s0
Jeff Sharkeyf063f462015-03-27 11:25:39 -0700453
454#############################
455# external storage
456/mnt/media_rw(/.*)? u:object_r:mnt_media_rw_file:s0
457/mnt/user(/.*)? u:object_r:mnt_user_file:s0
Jeff Sharkey25725b62015-08-06 11:52:45 -0700458/mnt/runtime(/.*)? u:object_r:storage_file:s0
Jeff Sharkeyf063f462015-03-27 11:25:39 -0700459/storage(/.*)? u:object_r:storage_file:s0