Home | History | Annotate | Download | only in sepolicy
      1 ###########################################
      2 # Root
      3 #
      4 # Nothing required since it is initramfs and implicitly labeled
      5 # by genfscon rootfs in ocontexts.
      6 #
      7 ##########################
      8 # Devices
      9 #
     10 /dev(/.*)?		u:object_r:device:s0
     11 /dev/akm8973.*		u:object_r:akm_device:s0
     12 /dev/accelerometer	u:object_r:accelerometer_device:s0
     13 /dev/alarm		u:object_r:alarm_device:s0
     14 /dev/android_adb.*	u:object_r:adb_device:s0
     15 /dev/ashmem		u:object_r:ashmem_device:s0
     16 /dev/audio.*		u:object_r:audio_device:s0
     17 /dev/binder		u:object_r:binder_device:s0
     18 /dev/block(/.*)?	u:object_r:block_device:s0
     19 /dev/block/loop[0-9]*	u:object_r:loop_device:s0
     20 /dev/block/ram[0-9]*	u:object_r:ram_device:s0
     21 /dev/block/mtdblock5	u:object_r:radio_device:s0
     22 /dev/cam		u:object_r:camera_device:s0
     23 /dev/console		u:object_r:console_device:s0
     24 /dev/cpuctl(/.*)?	u:object_r:cpuctl_device:s0
     25 /dev/device-mapper	u:object_r:dm_device:s0
     26 /dev/eac		u:object_r:audio_device:s0
     27 /dev/full		u:object_r:full_device:s0
     28 /dev/graphics(/.*)?	u:object_r:graphics_device:s0
     29 /dev/input(/.*)		u:object_r:input_device:s0
     30 /dev/kmem		u:object_r:kmem_device:s0
     31 /dev/log(/.*)?		u:object_r:log_device:s0
     32 /dev/mem		u:object_r:kmem_device:s0
     33 /dev/modem.*		u:object_r:radio_device:s0
     34 /dev/mtd(/.*)?		u:object_r:mtd_device:s0
     35 /dev/mtd/mtd5		u:object_r:radio_device:s0
     36 /dev/mtd/mtd5ro		u:object_r:radio_device:s0
     37 /dev/mtp_usb		u:object_r:mtp_device:s0
     38 /dev/pn544		u:object_r:nfc_device:s0
     39 /dev/ptmx		u:object_r:ptmx_device:s0
     40 /dev/pvrsrvkm		u:object_r:powervr_device:s0
     41 /dev/qemu_.*		u:object_r:qemu_device:s0
     42 /dev/kmsg		u:object_r:kmsg_device:s0
     43 /dev/null		u:object_r:null_device:s0
     44 /dev/nvhdcp1		u:object_r:video_device:s0
     45 /dev/nvmap		u:object_r:nv_device:s0
     46 /dev/nvhost-.*		u:object_r:nv_device:s0
     47 /dev/random		u:object_r:random_device:s0
     48 /dev/s3c-jpg		u:object_r:camera_device:s0
     49 /dev/s3c-mem		u:object_r:camera_device:s0
     50 /dev/s3c-mfc		u:object_r:graphics_device:s0
     51 /dev/snd(/.*)?		u:object_r:audio_device:s0
     52 /dev/socket		u:object_r:socket_device:s0
     53 /dev/socket/bluetooth	u:object_r:bluetooth_socket:s0
     54 /dev/socket/dbus_bluetooth	u:object_r:bluetooth_socket:s0
     55 /dev/socket/dbus	u:object_r:dbus_socket:s0
     56 /dev/socket/dnsproxyd	u:object_r:dnsproxyd_socket:s0
     57 /dev/socket/installd	u:object_r:installd_socket:s0
     58 /dev/socket/keystore	u:object_r:keystore_socket:s0
     59 /dev/socket/netd	u:object_r:netd_socket:s0
     60 /dev/socket/property_service	u:object_r:property_socket:s0
     61 /dev/socket/qemud	u:object_r:qemud_socket:s0
     62 /dev/socket/rild	u:object_r:rild_socket:s0
     63 /dev/socket/rild-debug	u:object_r:rild_debug_socket:s0
     64 /dev/socket/vold	u:object_r:vold_socket:s0
     65 /dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0
     66 /dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0
     67 /dev/socket/zygote	u:object_r:zygote_socket:s0
     68 /dev/spdif_out.*	u:object_r:audio_device:s0
     69 /dev/tegra.*		u:object_r:video_device:s0
     70 /dev/tty[0-9]*		u:object_r:tty_device:s0
     71 /dev/ttyS[0-9]*		u:object_r:serial_device:s0
     72 /dev/uinput		u:object_r:input_device:s0
     73 /dev/urandom		u:object_r:urandom_device:s0
     74 /dev/vcs[0-9a-z]*	u:object_r:vcs_device:s0
     75 /dev/video[0-9]*	u:object_r:video_device:s0
     76 /dev/zero		u:object_r:zero_device:s0
     77 #############################
     78 # System files
     79 #
     80 /system(/.*)?		u:object_r:system_file:s0
     81 /system/bin/ash		u:object_r:shell_exec:s0
     82 /system/bin/mksh	u:object_r:shell_exec:s0
     83 /system/bin/sh		--	u:object_r:shell_exec:s0
     84 /system/bin/app_process	u:object_r:zygote_exec:s0
     85 /system/bin/servicemanager	u:object_r:servicemanager_exec:s0
     86 /system/bin/surfaceflinger	u:object_r:surfaceflinger_exec:s0
     87 /system/bin/drmserver	u:object_r:drmserver_exec:s0
     88 /system/bin/vold	u:object_r:vold_exec:s0
     89 /system/bin/netd	u:object_r:netd_exec:s0
     90 /system/bin/rild	u:object_r:rild_exec:s0
     91 /system/bin/mediaserver	u:object_r:mediaserver_exec:s0
     92 /system/bin/dbus-daemon	u:object_r:dbusd_exec:s0
     93 /system/bin/installd	u:object_r:installd_exec:s0
     94 /system/bin/keystore	u:object_r:keystore_exec:s0
     95 /system/bin/debuggerd	u:object_r:debuggerd_exec:s0
     96 /system/bin/bluetoothd	u:object_r:bluetoothd_exec:s0
     97 /system/bin/wpa_supplicant	u:object_r:wpa_exec:s0
     98 /system/bin/qemud	u:object_r:qemud_exec:s0
     99 /system/xbin/su		u:object_r:su_exec:s0
    100 /system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
    101 #############################
    102 # Data files
    103 #
    104 /data(/.*)?		u:object_r:system_data_file:s0
    105 /data/drm(/.*)?		u:object_r:drm_data_file:s0
    106 /data/gps(/.*)?		u:object_r:gps_data_file:s0
    107 /data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
    108 /data/anr(/.*)?		u:object_r:anr_data_file:s0
    109 /data/app(/.*)?		u:object_r:apk_data_file:s0
    110 /data/app/vmdl.*\.tmp	u:object_r:apk_tmp_file:s0
    111 /data/tombstones(/.*)?	u:object_r:tombstone_data_file:s0
    112 /data/local(/.*)?	u:object_r:shell_data_file:s0
    113 # Misc data
    114 /data/misc/bluetoothd(/.*)?	u:object_r:bluetoothd_data_file:s0
    115 /data/misc/bluetooth(/.*)?	u:object_r:bluetooth_data_file:s0
    116 /data/misc/keystore(/.*)?	u:object_r:keystore_data_file:s0
    117 /data/misc/vpn(/.*)?		u:object_r:vpn_data_file:s0
    118 /data/misc/systemkeys(/.*)?	u:object_r:systemkeys_data_file:s0
    119 /data/misc/wifi(/.*)?		u:object_r:wifi_data_file:s0
    120 # App sandboxes
    121 /data/data/.*		u:object_r:app_data_file:s0
    122 # Wallpaper file.
    123 /data/data/com.android.settings/files/wallpaper	u:object_r:wallpaper_file:s0
    124 #############################
    125 # efs files
    126 #
    127 /efs(/.*)?		u:object_r:efs_file:s0
    128 #############################
    129 # Cache files
    130 #
    131 /cache(/.*)?		u:object_r:cache_file:s0
    132 #############################
    133 # sysfs files
    134 #
    135 /sys/qemu_trace/process_name	--	u:object_r:sysfs_writable:s0
    136 /sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
    137