Home | History | Annotate | Download | only in private
      1 ###########################################
      2 # Root
      3 /                   u:object_r:rootfs:s0
      4 
      5 # Data files
      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
     15 
     16 # Executables
     17 /charger            u:object_r:rootfs:s0
     18 /init               u:object_r:init_exec:s0
     19 /sbin(/.*)?         u:object_r:rootfs:s0
     20 
     21 # For kernel modules
     22 /lib(/.*)?          u:object_r:rootfs:s0
     23 
     24 # Empty directories
     25 /lost\+found        u:object_r:rootfs:s0
     26 /acct               u:object_r:cgroup:s0
     27 /config             u:object_r:rootfs:s0
     28 /mnt                u:object_r:tmpfs:s0
     29 /postinstall        u:object_r:postinstall_mnt_dir:s0
     30 /proc               u:object_r:rootfs:s0
     31 /root               u:object_r:rootfs:s0
     32 /sys                u:object_r:sysfs:s0
     33 
     34 # Symlinks
     35 /bugreports         u:object_r:rootfs:s0
     36 /d                  u:object_r:rootfs:s0
     37 /etc                u:object_r:rootfs:s0
     38 /sdcard             u:object_r:rootfs:s0
     39 
     40 # SELinux policy files
     41 /nonplat_file_contexts  u:object_r:file_contexts_file:s0
     42 /plat_file_contexts     u:object_r:file_contexts_file:s0
     43 /mapping_sepolicy\.cil   u:object_r:sepolicy_file:s0
     44 /nonplat_sepolicy\.cil   u:object_r:sepolicy_file:s0
     45 /plat_sepolicy\.cil      u:object_r:sepolicy_file:s0
     46 /plat_property_contexts  u:object_r:property_contexts_file:s0
     47 /nonplat_property_contexts  u:object_r:property_contexts_file:s0
     48 /seapp_contexts     u:object_r:seapp_contexts_file:s0
     49 /nonplat_seapp_contexts     u:object_r:seapp_contexts_file:s0
     50 /plat_seapp_contexts     u:object_r:seapp_contexts_file:s0
     51 /sepolicy           u:object_r:sepolicy_file:s0
     52 /plat_service_contexts   u:object_r:service_contexts_file:s0
     53 /plat_hwservice_contexts   u:object_r:hwservice_contexts_file:s0
     54 /nonplat_service_contexts   u:object_r:service_contexts_file:s0
     55 /nonplat_hwservice_contexts   u:object_r:hwservice_contexts_file:s0
     56 /vndservice_contexts   u:object_r:vndservice_contexts_file:s0
     57 
     58 ##########################
     59 # Devices
     60 #
     61 /dev(/.*)?		u:object_r:device:s0
     62 /dev/akm8973.*		u:object_r:sensors_device:s0
     63 /dev/accelerometer	u:object_r:sensors_device:s0
     64 /dev/adf[0-9]*		u:object_r:graphics_device:s0
     65 /dev/adf-interface[0-9]*\.[0-9]*	u:object_r:graphics_device:s0
     66 /dev/adf-overlay-engine[0-9]*\.[0-9]*	u:object_r:graphics_device:s0
     67 /dev/alarm		u:object_r:alarm_device:s0
     68 /dev/ashmem		u:object_r:ashmem_device:s0
     69 /dev/audio.*		u:object_r:audio_device:s0
     70 /dev/binder		u:object_r:binder_device:s0
     71 /dev/block(/.*)?	u:object_r:block_device:s0
     72 /dev/block/dm-[0-9]+	u:object_r:dm_device:s0
     73 /dev/block/loop[0-9]*	u:object_r:loop_device:s0
     74 /dev/block/vold/.+	u:object_r:vold_device:s0
     75 /dev/block/ram[0-9]*	u:object_r:ram_device:s0
     76 /dev/block/zram[0-9]*	u:object_r:ram_device:s0
     77 /dev/bus/usb(.*)?       u:object_r:usb_device:s0
     78 /dev/cam		u:object_r:camera_device:s0
     79 /dev/console		u:object_r:console_device:s0
     80 /dev/cpuctl(/.*)?	u:object_r:cpuctl_device:s0
     81 /dev/device-mapper	u:object_r:dm_device:s0
     82 /dev/eac		u:object_r:audio_device:s0
     83 /dev/event-log-tags     u:object_r:runtime_event_log_tags_file:s0
     84 /dev/fscklogs(/.*)?	u:object_r:fscklogs:s0
     85 /dev/full		u:object_r:full_device:s0
     86 /dev/fuse		u:object_r:fuse_device:s0
     87 /dev/graphics(/.*)?	u:object_r:graphics_device:s0
     88 /dev/hw_random		u:object_r:hw_random_device:s0
     89 /dev/hwbinder		u:object_r:hwbinder_device:s0
     90 /dev/i2c-[0-9]+		u:object_r:i2c_device:s0
     91 /dev/input(/.*)		u:object_r:input_device:s0
     92 /dev/iio:device[0-9]+   u:object_r:iio_device:s0
     93 /dev/ion		u:object_r:ion_device:s0
     94 /dev/keychord   u:object_r:keychord_device:s0
     95 /dev/kmem		u:object_r:kmem_device:s0
     96 /dev/log(/.*)?		u:object_r:log_device:s0
     97 /dev/loop-control	u:object_r:loop_control_device:s0
     98 /dev/mem		u:object_r:kmem_device:s0
     99 /dev/modem.*		u:object_r:radio_device:s0
    100 /dev/mtd(/.*)?		u:object_r:mtd_device:s0
    101 /dev/mtp_usb		u:object_r:mtp_device:s0
    102 /dev/pmsg0		u:object_r:pmsg_device:s0
    103 /dev/pn544		u:object_r:nfc_device:s0
    104 /dev/port		u:object_r:port_device:s0
    105 /dev/ppp		u:object_r:ppp_device:s0
    106 /dev/ptmx		u:object_r:ptmx_device:s0
    107 /dev/pvrsrvkm		u:object_r:gpu_device:s0
    108 /dev/kmsg		u:object_r:kmsg_device:s0
    109 /dev/null		u:object_r:null_device:s0
    110 /dev/nvhdcp1		u:object_r:video_device:s0
    111 /dev/random		u:object_r:random_device:s0
    112 /dev/rpmsg-omx[0-9]	u:object_r:rpmsg_device:s0
    113 /dev/rproc_user	u:object_r:rpmsg_device:s0
    114 /dev/rtc[0-9]      u:object_r:rtc_device:s0
    115 /dev/snd(/.*)?		u:object_r:audio_device:s0
    116 /dev/snd/audio_timer_device	u:object_r:audio_timer_device:s0
    117 /dev/snd/audio_seq_device	u:object_r:audio_seq_device:s0
    118 /dev/socket(/.*)?	u:object_r:socket_device:s0
    119 /dev/socket/adbd	u:object_r:adbd_socket:s0
    120 /dev/socket/cryptd	u:object_r:vold_socket:s0
    121 /dev/socket/dnsproxyd	u:object_r:dnsproxyd_socket:s0
    122 /dev/socket/dumpstate	u:object_r:dumpstate_socket:s0
    123 /dev/socket/fwmarkd	u:object_r:fwmarkd_socket:s0
    124 /dev/socket/lmkd        u:object_r:lmkd_socket:s0
    125 /dev/socket/logd	u:object_r:logd_socket:s0
    126 /dev/socket/logdr	u:object_r:logdr_socket:s0
    127 /dev/socket/logdw	u:object_r:logdw_socket:s0
    128 /dev/socket/mdns	u:object_r:mdns_socket:s0
    129 /dev/socket/mdnsd	u:object_r:mdnsd_socket:s0
    130 /dev/socket/mtpd	u:object_r:mtpd_socket:s0
    131 /dev/socket/netd	u:object_r:netd_socket:s0
    132 /dev/socket/pdx/system/buffer_hub	u:object_r:pdx_bufferhub_dir:s0
    133 /dev/socket/pdx/system/buffer_hub/client	u:object_r:pdx_bufferhub_client_endpoint_socket:s0
    134 /dev/socket/pdx/system/performance	u:object_r:pdx_performance_dir:s0
    135 /dev/socket/pdx/system/performance/client	u:object_r:pdx_performance_client_endpoint_socket:s0
    136 /dev/socket/pdx/system/vr/display	u:object_r:pdx_display_dir:s0
    137 /dev/socket/pdx/system/vr/display/client	u:object_r:pdx_display_client_endpoint_socket:s0
    138 /dev/socket/pdx/system/vr/display/manager	u:object_r:pdx_display_manager_endpoint_socket:s0
    139 /dev/socket/pdx/system/vr/display/screenshot	u:object_r:pdx_display_screenshot_endpoint_socket:s0
    140 /dev/socket/pdx/system/vr/display/vsync	u:object_r:pdx_display_vsync_endpoint_socket:s0
    141 /dev/socket/property_service	u:object_r:property_socket:s0
    142 /dev/socket/racoon	u:object_r:racoon_socket:s0
    143 /dev/socket/rild	u:object_r:rild_socket:s0
    144 /dev/socket/rild-debug	u:object_r:rild_debug_socket:s0
    145 /dev/socket/tombstoned_crash u:object_r:tombstoned_crash_socket:s0
    146 /dev/socket/tombstoned_intercept u:object_r:tombstoned_intercept_socket:s0
    147 /dev/socket/uncrypt	u:object_r:uncrypt_socket:s0
    148 /dev/socket/vold	u:object_r:vold_socket:s0
    149 /dev/socket/webview_zygote	u:object_r:webview_zygote_socket:s0
    150 /dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0
    151 /dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0
    152 /dev/socket/zygote	u:object_r:zygote_socket:s0
    153 /dev/socket/zygote_secondary	u:object_r:zygote_socket:s0
    154 /dev/spdif_out.*	u:object_r:audio_device:s0
    155 /dev/tegra.*		u:object_r:video_device:s0
    156 /dev/tty		u:object_r:owntty_device:s0
    157 /dev/tty[0-9]*		u:object_r:tty_device:s0
    158 /dev/ttyS[0-9]*		u:object_r:serial_device:s0
    159 /dev/tun		u:object_r:tun_device:s0
    160 /dev/uhid		u:object_r:uhid_device:s0
    161 /dev/uinput		u:object_r:uhid_device:s0
    162 /dev/uio[0-9]*		u:object_r:uio_device:s0
    163 /dev/urandom		u:object_r:random_device:s0
    164 /dev/usb_accessory	u:object_r:usbaccessory_device:s0
    165 /dev/vcs[0-9a-z]*	u:object_r:vcs_device:s0
    166 /dev/video[0-9]*	u:object_r:video_device:s0
    167 /dev/vndbinder		u:object_r:vndbinder_device:s0
    168 /dev/watchdog		u:object_r:watchdog_device:s0
    169 /dev/xt_qtaguid	u:object_r:qtaguid_device:s0
    170 /dev/zero		u:object_r:zero_device:s0
    171 /dev/__properties__ u:object_r:properties_device:s0
    172 #############################
    173 # System files
    174 #
    175 /system(/.*)?		u:object_r:system_file:s0
    176 /system/bin/atrace	u:object_r:atrace_exec:s0
    177 /system/bin/e2fsck	--	u:object_r:fsck_exec:s0
    178 /system/bin/fsck\.f2fs	--	u:object_r:fsck_exec:s0
    179 /system/bin/fsck_msdos	--	u:object_r:fsck_exec:s0
    180 /system/bin/tune2fs	--	u:object_r:fsck_exec:s0
    181 /system/bin/toolbox	--	u:object_r:toolbox_exec:s0
    182 /system/bin/toybox	--	u:object_r:toolbox_exec:s0
    183 /system/bin/logcat	--	u:object_r:logcat_exec:s0
    184 /system/bin/logcatd	--	u:object_r:logcat_exec:s0
    185 /system/bin/sh		--	u:object_r:shell_exec:s0
    186 /system/bin/run-as	--	u:object_r:runas_exec:s0
    187 /system/bin/bootanimation u:object_r:bootanim_exec:s0
    188 /system/bin/bootstat		u:object_r:bootstat_exec:s0
    189 /system/bin/app_process32	u:object_r:zygote_exec:s0
    190 /system/bin/app_process64	u:object_r:zygote_exec:s0
    191 /system/bin/servicemanager	u:object_r:servicemanager_exec:s0
    192 /system/bin/hwservicemanager	u:object_r:hwservicemanager_exec:s0
    193 /system/bin/surfaceflinger	u:object_r:surfaceflinger_exec:s0
    194 /system/bin/bufferhubd	u:object_r:bufferhubd_exec:s0
    195 /system/bin/performanced	u:object_r:performanced_exec:s0
    196 /system/bin/drmserver	u:object_r:drmserver_exec:s0
    197 /system/bin/dumpstate   u:object_r:dumpstate_exec:s0
    198 /system/bin/incident   u:object_r:incident_exec:s0
    199 /system/bin/incidentd   u:object_r:incidentd_exec:s0
    200 /system/bin/netutils-wrapper-1\.0    u:object_r:netutils_wrapper_exec:s0
    201 /system/bin/vold	u:object_r:vold_exec:s0
    202 /system/bin/netd	u:object_r:netd_exec:s0
    203 /system/bin/wificond	u:object_r:wificond_exec:s0
    204 /system/bin/audioserver	u:object_r:audioserver_exec:s0
    205 /system/bin/mediadrmserver	u:object_r:mediadrmserver_exec:s0
    206 /system/bin/mediaserver	u:object_r:mediaserver_exec:s0
    207 /system/bin/mediametrics	u:object_r:mediametrics_exec:s0
    208 /system/bin/cameraserver	u:object_r:cameraserver_exec:s0
    209 /system/bin/mediaextractor	u:object_r:mediaextractor_exec:s0
    210 /system/bin/mdnsd	u:object_r:mdnsd_exec:s0
    211 /system/bin/installd	u:object_r:installd_exec:s0
    212 /system/bin/otapreopt_chroot   u:object_r:otapreopt_chroot_exec:s0
    213 /system/bin/otapreopt_slot   u:object_r:otapreopt_slot_exec:s0
    214 /system/bin/keystore	u:object_r:keystore_exec:s0
    215 /system/bin/fingerprintd u:object_r:fingerprintd_exec:s0
    216 /system/bin/gatekeeperd u:object_r:gatekeeperd_exec:s0
    217 /system/bin/crash_dump32 u:object_r:crash_dump_exec:s0
    218 /system/bin/crash_dump64 u:object_r:crash_dump_exec:s0
    219 /system/bin/tombstoned u:object_r:tombstoned_exec:s0
    220 /system/bin/recovery-persist     u:object_r:recovery_persist_exec:s0
    221 /system/bin/recovery-refresh     u:object_r:recovery_refresh_exec:s0
    222 /system/bin/sdcard      u:object_r:sdcardd_exec:s0
    223 /system/bin/dhcpcd      u:object_r:dhcp_exec:s0
    224 /system/bin/dhcpcd-6.8.2	u:object_r:dhcp_exec:s0
    225 /system/bin/mtpd	u:object_r:mtp_exec:s0
    226 /system/bin/pppd	u:object_r:ppp_exec:s0
    227 /system/bin/racoon	u:object_r:racoon_exec:s0
    228 /system/xbin/su		u:object_r:su_exec:s0
    229 /system/xbin/perfprofd  u:object_r:perfprofd_exec:s0
    230 /system/bin/dnsmasq     u:object_r:dnsmasq_exec:s0
    231 /system/bin/healthd     u:object_r:healthd_exec:s0
    232 /system/bin/clatd	u:object_r:clatd_exec:s0
    233 /system/bin/lmkd        u:object_r:lmkd_exec:s0
    234 /system/bin/inputflinger u:object_r:inputflinger_exec:s0
    235 /system/bin/logd        u:object_r:logd_exec:s0
    236 /system/bin/uncrypt     u:object_r:uncrypt_exec:s0
    237 /system/bin/update_verifier u:object_r:update_verifier_exec:s0
    238 /system/bin/logwrapper  u:object_r:system_file:s0
    239 /system/bin/vdc         u:object_r:vdc_exec:s0
    240 /system/bin/cppreopts.sh   u:object_r:cppreopts_exec:s0
    241 /system/bin/preopt2cachename u:object_r:preopt2cachename_exec:s0
    242 /system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0
    243 /system/bin/dex2oat(d)?     u:object_r:dex2oat_exec:s0
    244 /system/bin/dexoptanalyzer     u:object_r:dexoptanalyzer_exec:s0
    245 # patchoat executable has (essentially) the same requirements as dex2oat.
    246 /system/bin/patchoat(d)?    u:object_r:dex2oat_exec:s0
    247 /system/bin/profman     u:object_r:profman_exec:s0
    248 /system/bin/sgdisk      u:object_r:sgdisk_exec:s0
    249 /system/bin/blkid       u:object_r:blkid_exec:s0
    250 /system/bin/tzdatacheck u:object_r:tzdatacheck_exec:s0
    251 /system/bin/idmap u:object_r:idmap_exec:s0
    252 /system/bin/update_engine        u:object_r:update_engine_exec:s0
    253 /system/bin/bspatch              u:object_r:update_engine_exec:s0
    254 /system/bin/storaged             u:object_r:storaged_exec:s0
    255 /system/bin/webview_zygote32     u:object_r:webview_zygote_exec:s0
    256 /system/bin/webview_zygote64     u:object_r:webview_zygote_exec:s0
    257 /system/bin/virtual_touchpad     u:object_r:virtual_touchpad_exec:s0
    258 /system/bin/hw/android\.hidl\.allocator@1\.0-service          u:object_r:hal_allocator_default_exec:s0
    259 /system/etc/selinux/mapping/[0-9]+\.[0-9]+\.cil       u:object_r:sepolicy_file:s0
    260 /system/etc/selinux/plat_mac_permissions\.xml u:object_r:mac_perms_file:s0
    261 /system/etc/selinux/plat_property_contexts  u:object_r:property_contexts_file:s0
    262 /system/etc/selinux/plat_service_contexts  u:object_r:service_contexts_file:s0
    263 /system/etc/selinux/plat_hwservice_contexts  u:object_r:hwservice_contexts_file:s0
    264 /system/etc/selinux/plat_file_contexts  u:object_r:file_contexts_file:s0
    265 /system/etc/selinux/plat_seapp_contexts  u:object_r:seapp_contexts_file:s0
    266 /system/etc/selinux/plat_sepolicy.cil       u:object_r:sepolicy_file:s0
    267 /system/etc/selinux/plat_and_mapping_sepolicy\.cil\.sha256 u:object_r:sepolicy_file:s0
    268 /system/bin/vr_hwc               u:object_r:vr_hwc_exec:s0
    269 
    270 #############################
    271 # Vendor files
    272 #
    273 /(vendor|system/vendor)(/.*)?                  u:object_r:vendor_file:s0
    274 /(vendor|system/vendor)/bin/sh                 u:object_r:vendor_shell_exec:s0
    275 /(vendor|system/vendor)/bin/toybox_vendor      u:object_r:vendor_toolbox_exec:s0
    276 /(vendor|system/vendor)/etc(/.*)?              u:object_r:vendor_configs_file:s0
    277 
    278 /(vendor|system/vendor)/lib(64)?/egl(/.*)?     u:object_r:same_process_hal_file:s0
    279 
    280 /(vendor|system/vendor)/lib(64)?/vndk-sp(/.*)? u:object_r:vndk_sp_file:s0
    281 
    282 # TODO: b/36790901 move this to /vendor/etc
    283 /(vendor|system/vendor)/manifest.xml           u:object_r:vendor_configs_file:s0
    284 /(vendor|system/vendor)/compatibility_matrix.xml u:object_r:vendor_configs_file:s0
    285 /(vendor|system/vendor)/app(/.*)?              u:object_r:vendor_app_file:s0
    286 /(vendor|system/vendor)/overlay(/.*)?          u:object_r:vendor_overlay_file:s0
    287 /(vendor|system/vendor)/framework(/.*)?        u:object_r:vendor_framework_file:s0
    288 
    289 # HAL location
    290 /(vendor|system/vendor)/lib(64)?/hw            u:object_r:vendor_hal_file:s0
    291 
    292 /vendor/etc/selinux/nonplat_mac_permissions.xml u:object_r:mac_perms_file:s0
    293 /vendor/etc/selinux/nonplat_property_contexts   u:object_r:property_contexts_file:s0
    294 /vendor/etc/selinux/nonplat_service_contexts    u:object_r:service_contexts_file:s0
    295 /vendor/etc/selinux/nonplat_hwservice_contexts    u:object_r:hwservice_contexts_file:s0
    296 /vendor/etc/selinux/nonplat_file_contexts   u:object_r:file_contexts_file:s0
    297 /vendor/etc/selinux/nonplat_seapp_contexts    u:object_r:seapp_contexts_file:s0
    298 /vendor/etc/selinux/nonplat_sepolicy.cil       u:object_r:sepolicy_file:s0
    299 /vendor/etc/selinux/precompiled_sepolicy        u:object_r:sepolicy_file:s0
    300 /vendor/etc/selinux/precompiled_sepolicy\.plat_and_mapping\.sha256 u:object_r:sepolicy_file:s0
    301 /vendor/etc/selinux/vndservice_contexts         u:object_r:vndservice_contexts_file:s0
    302 
    303 #############################
    304 # OEM and ODM files
    305 #
    306 /odm(/.*)?              u:object_r:system_file:s0
    307 /oem(/.*)?              u:object_r:oemfs:s0
    308 
    309 
    310 #############################
    311 # Data files
    312 #
    313 # NOTE: When modifying existing label rules, changes may also need to
    314 # propagate to the "Expanded data files" section.
    315 #
    316 /data(/.*)?		u:object_r:system_data_file:s0
    317 /data/.layout_version		u:object_r:install_data_file:s0
    318 /data/unencrypted(/.*)?         u:object_r:unencrypted_data_file:s0
    319 /data/backup(/.*)?		u:object_r:backup_data_file:s0
    320 /data/secure/backup(/.*)?	u:object_r:backup_data_file:s0
    321 /data/system/ndebugsocket	u:object_r:system_ndebug_socket:s0
    322 /data/drm(/.*)?		u:object_r:drm_data_file:s0
    323 /data/resource-cache(/.*)? u:object_r:resourcecache_data_file:s0
    324 /data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
    325 /data/ota(/.*)? u:object_r:ota_data_file:s0
    326 /data/ota_package(/.*)? u:object_r:ota_package_file:s0
    327 /data/adb(/.*)?		u:object_r:adb_data_file:s0
    328 /data/anr(/.*)?		u:object_r:anr_data_file:s0
    329 /data/app(/.*)?                       u:object_r:apk_data_file:s0
    330 /data/app/[^/]+/oat(/.*)?                u:object_r:dalvikcache_data_file:s0
    331 /data/app/vmdl[^/]+\.tmp(/.*)?           u:object_r:apk_tmp_file:s0
    332 /data/app/vmdl[^/]+\.tmp/oat(/.*)?           u:object_r:dalvikcache_data_file:s0
    333 /data/app-private(/.*)?               u:object_r:apk_private_data_file:s0
    334 /data/app-private/vmdl.*\.tmp(/.*)?   u:object_r:apk_private_tmp_file:s0
    335 /data/tombstones(/.*)?	u:object_r:tombstone_data_file:s0
    336 /data/local/tmp(/.*)?	u:object_r:shell_data_file:s0
    337 /data/media(/.*)?	u:object_r:media_rw_data_file:s0
    338 /data/mediadrm(/.*)?	u:object_r:media_data_file:s0
    339 /data/nativetest(/.*)?	u:object_r:nativetest_data_file:s0
    340 /data/nativetest64(/.*)?	u:object_r:nativetest_data_file:s0
    341 /data/property(/.*)?	u:object_r:property_data_file:s0
    342 /data/preloads(/.*)?	u:object_r:preloads_data_file:s0
    343 /data/preloads/media(/.*)?	u:object_r:preloads_media_file:s0
    344 /data/preloads/demo(/.*)?	u:object_r:preloads_media_file:s0
    345 
    346 # Misc data
    347 /data/misc/adb(/.*)?            u:object_r:adb_keys_file:s0
    348 /data/misc/audio(/.*)?          u:object_r:audio_data_file:s0
    349 /data/misc/audioserver(/.*)?    u:object_r:audioserver_data_file:s0
    350 /data/misc/audiohal(/.*)?       u:object_r:audiohal_data_file:s0
    351 /data/misc/bootstat(/.*)?       u:object_r:bootstat_data_file:s0
    352 /data/misc/boottrace(/.*)?      u:object_r:boottrace_data_file:s0
    353 /data/misc/bluetooth(/.*)?      u:object_r:bluetooth_data_file:s0
    354 /data/misc/bluetooth/logs(/.*)? u:object_r:bluetooth_logs_data_file:s0
    355 /data/misc/bluedroid(/.*)?      u:object_r:bluetooth_data_file:s0
    356 /data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0
    357 /data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0
    358 /data/misc/camera(/.*)?         u:object_r:camera_data_file:s0
    359 /data/misc/dhcp(/.*)?           u:object_r:dhcp_data_file:s0
    360 /data/misc/dhcp-6.8.2(/.*)?     u:object_r:dhcp_data_file:s0
    361 /data/misc/gatekeeper(/.*)?     u:object_r:gatekeeper_data_file:s0
    362 /data/misc/incidents(/.*)?	    u:object_r:incident_data_file:s0
    363 /data/misc/keychain(/.*)?       u:object_r:keychain_data_file:s0
    364 /data/misc/keystore(/.*)?       u:object_r:keystore_data_file:s0
    365 /data/misc/logd(/.*)?           u:object_r:misc_logd_file:s0
    366 /data/misc/media(/.*)?          u:object_r:media_data_file:s0
    367 /data/misc/net(/.*)?            u:object_r:net_data_file:s0
    368 /data/misc/reboot(/.*)?         u:object_r:reboot_data_file:s0
    369 /data/misc/recovery(/.*)?       u:object_r:recovery_data_file:s0
    370 /data/misc/shared_relro(/.*)?   u:object_r:shared_relro_file:s0
    371 /data/misc/sms(/.*)?            u:object_r:radio_data_file:s0
    372 /data/misc/systemkeys(/.*)?     u:object_r:systemkeys_data_file:s0
    373 /data/misc/textclassifier(/.*)?       u:object_r:textclassifier_data_file:s0
    374 /data/misc/user(/.*)?           u:object_r:misc_user_data_file:s0
    375 /data/misc/vpn(/.*)?            u:object_r:vpn_data_file:s0
    376 /data/misc/wifi(/.*)?           u:object_r:wifi_data_file:s0
    377 /data/misc/wifi/sockets(/.*)?   u:object_r:wpa_socket:s0
    378 /data/misc/wifi/sockets/wpa_ctrl.*   u:object_r:system_wpa_socket:s0
    379 /data/misc/zoneinfo(/.*)?       u:object_r:zoneinfo_data_file:s0
    380 /data/misc/vold(/.*)?           u:object_r:vold_data_file:s0
    381 /data/misc/perfprofd(/.*)?      u:object_r:perfprofd_data_file:s0
    382 /data/misc/update_engine(/.*)?  u:object_r:update_engine_data_file:s0
    383 /data/system/heapdump(/.*)?     u:object_r:heapdump_data_file:s0
    384 /data/misc/trace(/.*)?          u:object_r:method_trace_data_file:s0
    385 # TODO(calin) label profile reference differently so that only
    386 # profman run as a special user can write to them
    387 /data/misc/profiles/cur(/.*)?       u:object_r:user_profile_data_file:s0
    388 /data/misc/profiles/ref(/.*)?       u:object_r:user_profile_data_file:s0
    389 /data/misc/profman(/.*)?        u:object_r:profman_dump_data_file:s0
    390 
    391 # Fingerprint data
    392 /data/system/users/[0-9]+/fpdata(/.*)? u:object_r:fingerprintd_data_file:s0
    393 
    394 # Bootchart data
    395 /data/bootchart(/.*)?		u:object_r:bootchart_data_file:s0
    396 
    397 #############################
    398 # Expanded data files
    399 #
    400 /mnt/expand(/.*)?                                   u:object_r:mnt_expand_file:s0
    401 /mnt/expand/[^/]+(/.*)?                             u:object_r:system_data_file:s0
    402 /mnt/expand/[^/]+/app(/.*)?                         u:object_r:apk_data_file:s0
    403 /mnt/expand/[^/]+/app/[^/]+/oat(/.*)?               u:object_r:dalvikcache_data_file:s0
    404 /mnt/expand/[^/]+/app/vmdl[^/]+\.tmp(/.*)?          u:object_r:apk_tmp_file:s0
    405 /mnt/expand/[^/]+/app/vmdl[^/]+\.tmp/oat(/.*)?      u:object_r:dalvikcache_data_file:s0
    406 /mnt/expand/[^/]+/local/tmp(/.*)?                   u:object_r:shell_data_file:s0
    407 /mnt/expand/[^/]+/media(/.*)?                       u:object_r:media_rw_data_file:s0
    408 /mnt/expand/[^/]+/misc/vold(/.*)?                   u:object_r:vold_data_file:s0
    409 
    410 # coredump directory for userdebug/eng devices
    411 /cores(/.*)?                    u:object_r:coredump_file:s0
    412 
    413 # Wallpaper files
    414 /data/system/users/[0-9]+/wallpaper_lock_orig	u:object_r:wallpaper_file:s0
    415 /data/system/users/[0-9]+/wallpaper_lock	u:object_r:wallpaper_file:s0
    416 /data/system/users/[0-9]+/wallpaper_orig	u:object_r:wallpaper_file:s0
    417 /data/system/users/[0-9]+/wallpaper		u:object_r:wallpaper_file:s0
    418 
    419 # Ringtone files
    420 /data/system_de/[0-9]+/ringtones(/.*)?          u:object_r:ringtone_file:s0
    421 
    422 # ShortcutManager icons, e.g.
    423 #   /data/system_ce/0/shortcut_service/bitmaps/com.example.app/1457472879282.png
    424 /data/system_ce/[0-9]+/shortcut_service/bitmaps(/.*)? u:object_r:shortcut_manager_icons:s0
    425 
    426 # User icon files
    427 /data/system/users/[0-9]+/photo.png             u:object_r:icon_file:s0
    428 
    429 #############################
    430 # efs files
    431 #
    432 /efs(/.*)?		u:object_r:efs_file:s0
    433 
    434 #############################
    435 # Cache files
    436 #
    437 /cache(/.*)?		u:object_r:cache_file:s0
    438 /cache/recovery(/.*)?	u:object_r:cache_recovery_file:s0
    439 # General backup/restore interchange with apps
    440 /cache/backup_stage(/.*)?	u:object_r:cache_backup_file:s0
    441 # LocalTransport (backup) uses this subtree
    442 /cache/backup(/.*)?		u:object_r:cache_private_backup_file:s0
    443 
    444 /data/cache(/.*)?		u:object_r:cache_file:s0
    445 /data/cache/recovery(/.*)?	u:object_r:cache_recovery_file:s0
    446 # General backup/restore interchange with apps
    447 /data/cache/backup_stage(/.*)?	u:object_r:cache_backup_file:s0
    448 # LocalTransport (backup) uses this subtree
    449 /data/cache/backup(/.*)?	u:object_r:cache_private_backup_file:s0
    450 
    451 #############################
    452 # sysfs files
    453 #
    454 /sys/class/leds(/.*)?                        u:object_r:sysfs_leds:s0
    455 /sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
    456 /sys/devices/virtual/block/zram\d+(/.*)?     u:object_r:sysfs_zram:s0
    457 /sys/devices/virtual/block/zram\d+/uevent    u:object_r:sysfs_zram_uevent:s0
    458 /sys/devices/virtual/misc/hw_random(/.*)?    u:object_r:sysfs_hwrandom:s0
    459 /sys/power/wake_lock -- u:object_r:sysfs_wake_lock:s0
    460 /sys/power/wake_unlock -- u:object_r:sysfs_wake_lock:s0
    461 /sys/kernel/uevent_helper --	u:object_r:usermodehelper:s0
    462 /sys/module/lowmemorykiller(/.*)? -- u:object_r:sysfs_lowmemorykiller:s0
    463 /sys/module/wlan/parameters/fwpath u:object_r:sysfs_wlan_fwpath:s0
    464 /sys/devices/virtual/timed_output/vibrator/enable u:object_r:sysfs_vibrator:s0
    465 
    466 #############################
    467 # debugfs files
    468 #
    469 /sys/kernel/debug/mmc0(/.*)?                            u:object_r:debugfs_mmc:s0
    470 
    471 #############################
    472 # tracefs files
    473 #
    474 /sys/kernel(/debug)?/tracing/buffer_size_kb                                         u:object_r:tracing_shell_writable:s0
    475 /sys/kernel(/debug)?/tracing/events/binder/binder_locked/enable                     u:object_r:tracing_shell_writable:s0
    476 /sys/kernel(/debug)?/tracing/events/binder/binder_lock/enable                       u:object_r:tracing_shell_writable:s0
    477 /sys/kernel(/debug)?/tracing/events/binder/binder_transaction/enable                u:object_r:tracing_shell_writable:s0
    478 /sys/kernel(/debug)?/tracing/events/binder/binder_transaction_received/enable       u:object_r:tracing_shell_writable:s0
    479 /sys/kernel(/debug)?/tracing/events/binder/binder_unlock/enable                     u:object_r:tracing_shell_writable:s0
    480 /sys/kernel(/debug)?/tracing/events/cpufreq_interactive/enable                      u:object_r:tracing_shell_writable:s0
    481 /sys/kernel(/debug)?/tracing/events/power/clock_set_rate/enable                     u:object_r:tracing_shell_writable:s0
    482 /sys/kernel(/debug)?/tracing/events/power/cpu_frequency/enable                      u:object_r:tracing_shell_writable:s0
    483 /sys/kernel(/debug)?/tracing/events/power/cpu_frequency_limits/enable               u:object_r:tracing_shell_writable:s0
    484 /sys/kernel(/debug)?/tracing/events/power/cpu_idle/enable                           u:object_r:tracing_shell_writable:s0
    485 /sys/kernel(/debug)?/tracing/events/sched/sched_blocked_reason/enable               u:object_r:tracing_shell_writable:s0
    486 /sys/kernel(/debug)?/tracing/events/sched/sched_cpu_hotplug/enable                  u:object_r:tracing_shell_writable:s0
    487 /sys/kernel(/debug)?/tracing/events/sched/sched_switch/enable                       u:object_r:tracing_shell_writable:s0
    488 /sys/kernel(/debug)?/tracing/events/sched/sched_wakeup/enable                       u:object_r:tracing_shell_writable:s0
    489 /sys/kernel(/debug)?/tracing/events/vmscan/mm_vmscan_direct_reclaim_begin/enable    u:object_r:tracing_shell_writable:s0
    490 /sys/kernel(/debug)?/tracing/events/vmscan/mm_vmscan_direct_reclaim_end/enable      u:object_r:tracing_shell_writable:s0
    491 /sys/kernel(/debug)?/tracing/events/vmscan/mm_vmscan_kswapd_sleep/enable            u:object_r:tracing_shell_writable:s0
    492 /sys/kernel(/debug)?/tracing/events/vmscan/mm_vmscan_kswapd_wake/enable             u:object_r:tracing_shell_writable:s0
    493 /sys/kernel(/debug)?/tracing/instances(/.*)?                                        u:object_r:debugfs_tracing_instances:s0
    494 /sys/kernel(/debug)?/tracing/instances/wifi/free_buffer                             u:object_r:debugfs_wifi_tracing:s0
    495 /sys/kernel(/debug)?/tracing/instances/wifi/trace                                   u:object_r:debugfs_wifi_tracing:s0
    496 /sys/kernel(/debug)?/tracing/instances/wifi/tracing_on                              u:object_r:debugfs_wifi_tracing:s0
    497 /sys/kernel(/debug)?/tracing/options/overwrite                                      u:object_r:tracing_shell_writable:s0
    498 /sys/kernel(/debug)?/tracing/options/print-tgid                                     u:object_r:tracing_shell_writable:s0
    499 /sys/kernel(/debug)?/tracing/trace                                                  u:object_r:tracing_shell_writable:s0
    500 /sys/kernel(/debug)?/tracing/trace_clock                                            u:object_r:tracing_shell_writable:s0
    501 /sys/kernel(/debug)?/tracing/trace_marker                                           u:object_r:debugfs_trace_marker:s0
    502 /sys/kernel(/debug)?/tracing/tracing_on                                             u:object_r:tracing_shell_writable:s0
    503 
    504 ###########################################
    505 # debug-only tracing
    506 #
    507 /sys/kernel/debug/tracing/events/sync/enable                         u:object_r:tracing_shell_writable_debug:s0
    508 /sys/kernel/debug/tracing/events/workqueue/enable                    u:object_r:tracing_shell_writable_debug:s0
    509 /sys/kernel/debug/tracing/events/regulator/enable                    u:object_r:tracing_shell_writable_debug:s0
    510 /sys/kernel/debug/tracing/events/pagecache/enable                    u:object_r:tracing_shell_writable_debug:s0
    511 
    512 /sys/kernel/debug/tracing/events/irq/enable                          u:object_r:tracing_shell_writable_debug:s0
    513 /sys/kernel/debug/tracing/events/ipi/enable                          u:object_r:tracing_shell_writable_debug:s0
    514 
    515 /sys/kernel/debug/tracing/events/f2fs/f2fs_sync_file_enter/enable    u:object_r:tracing_shell_writable_debug:s0
    516 /sys/kernel/debug/tracing/events/f2fs/f2fs_sync_file_exit/enable     u:object_r:tracing_shell_writable_debug:s0
    517 /sys/kernel/debug/tracing/events/f2fs/f2fs_write_begin/enable        u:object_r:tracing_shell_writable_debug:s0
    518 /sys/kernel/debug/tracing/events/f2fs/f2fs_write_end/enable          u:object_r:tracing_shell_writable_debug:s0
    519 /sys/kernel/debug/tracing/events/ext4/ext4_da_write_begin/enable     u:object_r:tracing_shell_writable_debug:s0
    520 /sys/kernel/debug/tracing/events/ext4/ext4_da_write_end/enable       u:object_r:tracing_shell_writable_debug:s0
    521 /sys/kernel/debug/tracing/events/ext4/ext4_sync_file_enter/enable    u:object_r:tracing_shell_writable_debug:s0
    522 /sys/kernel/debug/tracing/events/ext4/ext4_sync_file_exit/enable     u:object_r:tracing_shell_writable_debug:s0
    523 /sys/kernel/debug/tracing/events/block/block_rq_issue/enable         u:object_r:tracing_shell_writable_debug:s0
    524 /sys/kernel/debug/tracing/events/block/block_rq_complete/enable      u:object_r:tracing_shell_writable_debug:s0
    525 /sys/kernel/debug/tracing/saved_cmdlines_size                        u:object_r:tracing_shell_writable_debug:s0
    526 
    527 #############################
    528 # asec containers
    529 /mnt/asec(/.*)?             u:object_r:asec_apk_file:s0
    530 /mnt/asec/[^/]+/[^/]+\.zip  u:object_r:asec_public_file:s0
    531 /mnt/asec/[^/]+/lib(/.*)?   u:object_r:asec_public_file:s0
    532 /data/app-asec(/.*)?        u:object_r:asec_image_file:s0
    533 
    534 #############################
    535 # external storage
    536 /mnt/media_rw(/.*)?         u:object_r:mnt_media_rw_file:s0
    537 /mnt/user(/.*)?             u:object_r:mnt_user_file:s0
    538 /mnt/runtime(/.*)?          u:object_r:storage_file:s0
    539 /storage(/.*)?              u:object_r:storage_file:s0
    540