Home | History | Annotate | Download | only in sepolicy
      1 ###########################################
      2 # Root
      3 /			u:object_r:rootfs:s0
      4 
      5 # Data files
      6 /adb_keys		u:object_r:adb_keys_file:s0
      7 /default\.prop		u:object_r:rootfs:s0
      8 /fstab\..*		u:object_r:rootfs:s0
      9 /init\..*		u:object_r:rootfs:s0
     10 /res(/.*)?		u:object_r:rootfs:s0
     11 /ueventd\..*		u:object_r:rootfs:s0
     12 
     13 # Executables
     14 /charger		u:object_r:rootfs:s0
     15 /init			u:object_r:rootfs:s0
     16 /sbin(/.*)?		u:object_r:rootfs:s0
     17 
     18 # Empty directories
     19 /lost\+found		u:object_r:rootfs:s0
     20 /proc			u:object_r:rootfs:s0
     21 
     22 # SELinux policy files
     23 /file_contexts		u:object_r:rootfs:s0
     24 /property_contexts	u:object_r:rootfs:s0
     25 /seapp_contexts		u:object_r:rootfs:s0
     26 /sepolicy		u:object_r:rootfs:s0
     27 
     28 ##########################
     29 # Devices
     30 #
     31 /dev(/.*)?		u:object_r:device:s0
     32 /dev/akm8973.*		u:object_r:sensors_device:s0
     33 /dev/accelerometer	u:object_r:sensors_device:s0
     34 /dev/adf[0-9]*		u:object_r:graphics_device:s0
     35 /dev/adf-interface[0-9]*\.[0-9]*	u:object_r:graphics_device:s0
     36 /dev/adf-overlay-engine[0-9]*\.[0-9]*	u:object_r:graphics_device:s0
     37 /dev/alarm		u:object_r:alarm_device:s0
     38 /dev/android_adb.*	u:object_r:adb_device:s0
     39 /dev/ashmem		u:object_r:ashmem_device:s0
     40 /dev/audio.*		u:object_r:audio_device:s0
     41 /dev/binder		u:object_r:binder_device:s0
     42 /dev/block(/.*)?	u:object_r:block_device:s0
     43 /dev/block/loop[0-9]*	u:object_r:loop_device:s0
     44 /dev/block/ram[0-9]*	u:object_r:ram_device:s0
     45 /dev/bus/usb(.*)?       u:object_r:usb_device:s0
     46 /dev/cam		u:object_r:camera_device:s0
     47 /dev/console		u:object_r:console_device:s0
     48 /dev/cpuctl(/.*)?	u:object_r:cpuctl_device:s0
     49 /dev/device-mapper	u:object_r:dm_device:s0
     50 /dev/eac		u:object_r:audio_device:s0
     51 /dev/fscklogs(/.*)?	u:object_r:fscklogs:s0
     52 /dev/full		u:object_r:full_device:s0
     53 /dev/fuse		u:object_r:fuse_device:s0
     54 /dev/graphics(/.*)?	u:object_r:graphics_device:s0
     55 /dev/hw_random		u:object_r:hw_random_device:s0
     56 /dev/input(/.*)		u:object_r:input_device:s0
     57 /dev/iio:device[0-9]+   u:object_r:iio_device:s0
     58 /dev/ion		u:object_r:ion_device:s0
     59 /dev/kmem		u:object_r:kmem_device:s0
     60 /dev/log(/.*)?		u:object_r:log_device:s0
     61 /dev/mem		u:object_r:kmem_device:s0
     62 /dev/modem.*		u:object_r:radio_device:s0
     63 /dev/mpu		u:object_r:gps_device:s0
     64 /dev/mpuirq		u:object_r:gps_device:s0
     65 /dev/mtd(/.*)?		u:object_r:mtd_device:s0
     66 /dev/mtp_usb		u:object_r:mtp_device:s0
     67 /dev/pn544		u:object_r:nfc_device:s0
     68 /dev/ppp		u:object_r:ppp_device:s0
     69 /dev/ptmx		u:object_r:ptmx_device:s0
     70 /dev/pvrsrvkm		u:object_r:gpu_device:s0
     71 /dev/kmsg		u:object_r:kmsg_device:s0
     72 /dev/null		u:object_r:null_device:s0
     73 /dev/nvhdcp1		u:object_r:video_device:s0
     74 /dev/random		u:object_r:random_device:s0
     75 /dev/rpmsg-omx[0-9]	u:object_r:rpmsg_device:s0
     76 /dev/rproc_user	u:object_r:rpmsg_device:s0
     77 /dev/snd(/.*)?		u:object_r:audio_device:s0
     78 /dev/socket(/.*)?	u:object_r:socket_device:s0
     79 /dev/socket/adbd	u:object_r:adbd_socket:s0
     80 /dev/socket/dnsproxyd	u:object_r:dnsproxyd_socket:s0
     81 /dev/socket/dumpstate	u:object_r:dumpstate_socket:s0
     82 /dev/socket/fwmarkd	u:object_r:fwmarkd_socket:s0
     83 /dev/socket/gps		u:object_r:gps_socket:s0
     84 /dev/socket/installd	u:object_r:installd_socket:s0
     85 /dev/socket/lmkd        u:object_r:lmkd_socket:s0
     86 /dev/logd_debug		u:object_r:logd_debug:s0
     87 /dev/socket/logd	u:object_r:logd_socket:s0
     88 /dev/socket/logdr	u:object_r:logdr_socket:s0
     89 /dev/socket/logdw	u:object_r:logdw_socket:s0
     90 /dev/socket/mdns	u:object_r:mdns_socket:s0
     91 /dev/socket/mdnsd	u:object_r:mdnsd_socket:s0
     92 /dev/socket/mtpd	u:object_r:mtpd_socket:s0
     93 /dev/socket/netd	u:object_r:netd_socket:s0
     94 /dev/socket/property_service	u:object_r:property_socket:s0
     95 /dev/socket/racoon	u:object_r:racoon_socket:s0
     96 /dev/socket/rild	u:object_r:rild_socket:s0
     97 /dev/socket/rild-debug	u:object_r:rild_debug_socket:s0
     98 /dev/socket/vold	u:object_r:vold_socket:s0
     99 /dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0
    100 /dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0
    101 /dev/socket/zygote	u:object_r:zygote_socket:s0
    102 /dev/socket/zygote_secondary	u:object_r:zygote_socket:s0
    103 /dev/spdif_out.*	u:object_r:audio_device:s0
    104 /dev/tegra.*		u:object_r:video_device:s0
    105 /dev/tf_driver		u:object_r:tee_device:s0
    106 /dev/tty		u:object_r:owntty_device:s0
    107 /dev/tty[0-9]*		u:object_r:tty_device:s0
    108 /dev/ttyS[0-9]*		u:object_r:serial_device:s0
    109 /dev/tun		u:object_r:tun_device:s0
    110 /dev/uhid		u:object_r:uhid_device:s0
    111 /dev/uinput		u:object_r:uhid_device:s0
    112 /dev/uio[0-9]*		u:object_r:uio_device:s0
    113 /dev/urandom		u:object_r:urandom_device:s0
    114 /dev/usb_accessory	u:object_r:usbaccessory_device:s0
    115 /dev/vcs[0-9a-z]*	u:object_r:vcs_device:s0
    116 /dev/video[0-9]*	u:object_r:video_device:s0
    117 /dev/watchdog		u:object_r:watchdog_device:s0
    118 /dev/xt_qtaguid	u:object_r:qtaguid_device:s0
    119 /dev/zero		u:object_r:zero_device:s0
    120 /dev/__kmsg__		u:object_r:klog_device:s0
    121 /dev/__properties__ u:object_r:properties_device:s0
    122 #############################
    123 # System files
    124 #
    125 /system(/.*)?		u:object_r:system_file:s0
    126 /system/bin/sh		--	u:object_r:shell_exec:s0
    127 /system/bin/run-as	--	u:object_r:runas_exec:s0
    128 /system/bin/bootanimation u:object_r:bootanim_exec:s0
    129 /system/bin/app_process32	u:object_r:zygote_exec:s0
    130 /system/bin/app_process64	u:object_r:zygote_exec:s0
    131 /system/bin/servicemanager	u:object_r:servicemanager_exec:s0
    132 /system/bin/surfaceflinger	u:object_r:surfaceflinger_exec:s0
    133 /system/bin/drmserver	u:object_r:drmserver_exec:s0
    134 /system/bin/dumpstate   u:object_r:dumpstate_exec:s0
    135 /system/bin/vold	u:object_r:vold_exec:s0
    136 /system/bin/netd	u:object_r:netd_exec:s0
    137 /system/bin/rild	u:object_r:rild_exec:s0
    138 /system/bin/mediaserver	u:object_r:mediaserver_exec:s0
    139 /system/bin/mdnsd	u:object_r:mdnsd_exec:s0
    140 /system/bin/installd	u:object_r:installd_exec:s0
    141 /system/bin/keystore	u:object_r:keystore_exec:s0
    142 /system/bin/debuggerd	u:object_r:debuggerd_exec:s0
    143 /system/bin/debuggerd64	u:object_r:debuggerd_exec:s0
    144 /system/bin/wpa_supplicant	u:object_r:wpa_exec:s0
    145 /system/bin/sdcard      u:object_r:sdcardd_exec:s0
    146 /system/bin/dhcpcd      u:object_r:dhcp_exec:s0
    147 /system/bin/mtpd	u:object_r:mtp_exec:s0
    148 /system/bin/pppd	u:object_r:ppp_exec:s0
    149 /system/bin/tf_daemon	u:object_r:tee_exec:s0
    150 /system/bin/racoon	u:object_r:racoon_exec:s0
    151 /system/xbin/su		u:object_r:su_exec:s0
    152 /system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
    153 /system/bin/dnsmasq     u:object_r:dnsmasq_exec:s0
    154 /system/bin/hostapd     u:object_r:hostapd_exec:s0
    155 /system/bin/clatd	u:object_r:clatd_exec:s0
    156 /system/bin/lmkd        u:object_r:lmkd_exec:s0
    157 /system/bin/inputflinger u:object_r:inputflinger_exec:s0
    158 /system/bin/logd        u:object_r:logd_exec:s0
    159 /system/bin/uncrypt     u:object_r:uncrypt_exec:s0
    160 /system/bin/logwrapper  u:object_r:system_file:s0
    161 /system/bin/vdc         u:object_r:vdc_exec:s0
    162 /system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0
    163 /system/bin/dex2oat     u:object_r:dex2oat_exec:s0
    164 # patchoat executable has (essentially) the same requirements as dex2oat.
    165 /system/bin/patchoat    u:object_r:dex2oat_exec:s0
    166 
    167 #############################
    168 # Vendor files
    169 #
    170 /vendor(/.*)?		u:object_r:system_file:s0
    171 /vendor/bin/gpsd	u:object_r:gpsd_exec:s0
    172 #############################
    173 # Data files
    174 #
    175 /data(/.*)?		u:object_r:system_data_file:s0
    176 /data/.layout_version		u:object_r:install_data_file:s0
    177 /data/backup(/.*)?		u:object_r:backup_data_file:s0
    178 /data/secure/backup(/.*)?	u:object_r:backup_data_file:s0
    179 /data/security(/.*)?	u:object_r:security_file:s0
    180 /data/system/ndebugsocket	u:object_r:system_ndebug_socket:s0
    181 /data/drm(/.*)?		u:object_r:drm_data_file:s0
    182 /data/gps(/.*)?		u:object_r:gps_data_file:s0
    183 /data/resource-cache(/.*)? u:object_r:resourcecache_data_file:s0
    184 /data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
    185 /data/dalvik-cache/profiles(/.*)? u:object_r:dalvikcache_profiles_data_file:s0
    186 /data/adb(/.*)?		u:object_r:adb_data_file:s0
    187 /data/anr(/.*)?		u:object_r:anr_data_file:s0
    188 /data/app(/.*)?                       u:object_r:apk_data_file:s0
    189 /data/app/vmdl.*\.tmp(/.*)?           u:object_r:apk_tmp_file:s0
    190 /data/app-private(/.*)?               u:object_r:apk_private_data_file:s0
    191 /data/app-private/vmdl.*\.tmp(/.*)?   u:object_r:apk_private_tmp_file:s0
    192 /data/tombstones(/.*)?	u:object_r:tombstone_data_file:s0
    193 /data/local/tmp(/.*)?	u:object_r:shell_data_file:s0
    194 /data/media(/.*)?	u:object_r:media_rw_data_file:s0
    195 /data/mediadrm(/.*)?	u:object_r:media_data_file:s0
    196 /data/property(/.*)?	u:object_r:property_data_file:s0
    197 
    198 # Misc data
    199 /data/misc/adb(/.*)?            u:object_r:adb_keys_file:s0
    200 /data/misc/audio(/.*)?          u:object_r:audio_data_file:s0
    201 /data/misc/bluetooth(/.*)?      u:object_r:bluetooth_data_file:s0
    202 /data/misc/bluedroid(/.*)?      u:object_r:bluetooth_data_file:s0
    203 /data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0
    204 /data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0
    205 /data/misc/camera(/.*)?         u:object_r:camera_data_file:s0
    206 /data/misc/dhcp(/.*)?           u:object_r:dhcp_data_file:s0
    207 /data/misc/keychain(/.*)?       u:object_r:keychain_data_file:s0
    208 /data/misc/keystore(/.*)?       u:object_r:keystore_data_file:s0
    209 /data/misc/media(/.*)?          u:object_r:media_data_file:s0
    210 /data/misc/net(/.*)?            u:object_r:net_data_file:s0
    211 /data/misc/shared_relro(/.*)?   u:object_r:shared_relro_file:s0
    212 /data/misc/sms(/.*)?            u:object_r:radio_data_file:s0
    213 /data/misc/systemkeys(/.*)?     u:object_r:systemkeys_data_file:s0
    214 /data/misc/user(/.*)?           u:object_r:misc_user_data_file:s0
    215 /data/misc/vpn(/.*)?            u:object_r:vpn_data_file:s0
    216 /data/misc/wifi(/.*)?           u:object_r:wifi_data_file:s0
    217 /data/misc/wifi/sockets(/.*)?   u:object_r:wpa_socket:s0
    218 /data/misc/wifi/sockets/wpa_ctrl.*   u:object_r:system_wpa_socket:s0
    219 /data/misc/wifi/hostapd(/.*)?   u:object_r:wpa_socket:s0
    220 /data/misc/zoneinfo(/.*)?       u:object_r:zoneinfo_data_file:s0
    221 
    222 # coredump directory for userdebug/eng devices
    223 /cores(/.*)?                    u:object_r:coredump_file:s0
    224 
    225 # Wallpaper file for other users
    226 /data/system/users/[0-9]+/wallpaper		u:object_r:wallpaper_file:s0
    227 #############################
    228 # efs files
    229 #
    230 /efs(/.*)?		u:object_r:efs_file:s0
    231 #############################
    232 # Cache files
    233 #
    234 /cache(/.*)?		u:object_r:cache_file:s0
    235 /cache/.*\.data	u:object_r:cache_backup_file:s0
    236 /cache/.*\.restore	u:object_r:cache_backup_file:s0
    237 # LocalTransport (backup) uses this directory
    238 /cache/backup(/.*)?	u:object_r:cache_backup_file:s0
    239 #############################
    240 # sysfs files
    241 #
    242 /sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
    243 /sys/devices/system/cpu(/.*)?    u:object_r:sysfs_devices_system_cpu:s0
    244 /sys/power/wake_lock -- u:object_r:sysfs_wake_lock:s0
    245 /sys/power/wake_unlock -- u:object_r:sysfs_wake_lock:s0
    246 /sys/kernel/uevent_helper --	u:object_r:usermodehelper:s0
    247 /sys/module/lowmemorykiller(/.*)? -- u:object_r:sysfs_lowmemorykiller:s0
    248 
    249 #############################
    250 # asec containers
    251 /mnt/asec(/.*)?             u:object_r:asec_apk_file:s0
    252 /mnt/asec/[^/]+/[^/]+\.zip  u:object_r:asec_public_file:s0
    253 /mnt/asec/[^/]+/lib(/.*)?   u:object_r:asec_public_file:s0
    254 /data/app-asec(/.*)?        u:object_r:asec_image_file:s0
    255