Home | History | Annotate | Download | only in sepolicy
      1 # Device types
      2 type device, dev_type, fs_type;
      3 type alarm_device, dev_type, mlstrustedobject;
      4 type adb_device, dev_type;
      5 type ashmem_device, dev_type, mlstrustedobject;
      6 type audio_device, dev_type;
      7 type binder_device, dev_type, mlstrustedobject;
      8 type block_device, dev_type;
      9 type camera_device, dev_type;
     10 type dm_device, dev_type;
     11 type loop_device, dev_type;
     12 type pmsg_device, dev_type, mlstrustedobject;
     13 type radio_device, dev_type;
     14 type ram_device, dev_type;
     15 type rtc_device, dev_type;
     16 type vold_device, dev_type;
     17 type console_device, dev_type;
     18 type cpuctl_device, dev_type;
     19 type fscklogs, dev_type;
     20 type full_device, dev_type;
     21 # GPU (used by most UI apps)
     22 type gpu_device, dev_type, mlstrustedobject;
     23 type graphics_device, dev_type;
     24 type hw_random_device, dev_type;
     25 type input_device, dev_type;
     26 type kmem_device, dev_type;
     27 type log_device, dev_type, mlstrustedobject;
     28 type mtd_device, dev_type;
     29 type mtp_device, dev_type, mlstrustedobject;
     30 type nfc_device, dev_type;
     31 type ptmx_device, dev_type, mlstrustedobject;
     32 type kmsg_device, dev_type;
     33 type null_device, dev_type, mlstrustedobject;
     34 type random_device, dev_type, mlstrustedobject;
     35 type sensors_device, dev_type;
     36 type serial_device, dev_type;
     37 type socket_device, dev_type;
     38 type owntty_device, dev_type, mlstrustedobject;
     39 type tty_device, dev_type;
     40 type urandom_device, dev_type, mlstrustedobject;
     41 type video_device, dev_type;
     42 type vcs_device, dev_type;
     43 type zero_device, dev_type, mlstrustedobject;
     44 type fuse_device, dev_type, mlstrustedobject;
     45 type iio_device, dev_type;
     46 type ion_device, dev_type, mlstrustedobject;
     47 type gps_device, dev_type;
     48 type qtaguid_device, dev_type;
     49 type watchdog_device, dev_type;
     50 type uhid_device, dev_type;
     51 type uio_device, dev_type;
     52 type tun_device, dev_type, mlstrustedobject;
     53 type usbaccessory_device, dev_type, mlstrustedobject;
     54 type usb_device, dev_type, mlstrustedobject;
     55 type klog_device, dev_type;
     56 type properties_device, dev_type;
     57 type properties_serial, dev_type;
     58 type i2c_device, dev_type;
     59 
     60 # All devices have a uart for the hci
     61 # attach service. The uart dev node
     62 # varies per device. This type
     63 # is used in per device policy
     64 type hci_attach_dev, dev_type;
     65 
     66 # All devices have a rpmsg device for
     67 # achieving remoteproc and rpmsg modules
     68 type rpmsg_device, dev_type;
     69 
     70 # Partition layout block device
     71 type root_block_device, dev_type;
     72 
     73 # factory reset protection block device
     74 type frp_block_device, dev_type;
     75 
     76 # System block device mounted on /system.
     77 type system_block_device, dev_type;
     78 
     79 # Recovery block device.
     80 type recovery_block_device, dev_type;
     81 
     82 # boot block device.
     83 type boot_block_device, dev_type;
     84 
     85 # Userdata block device mounted on /data.
     86 type userdata_block_device, dev_type;
     87 
     88 # Cache block device mounted on /cache.
     89 type cache_block_device, dev_type;
     90 
     91 # Block device for any swap partition.
     92 type swap_block_device, dev_type;
     93 
     94 # Metadata block device used for encryption metadata.
     95 # Assign this type to the partition specified by the encryptable=
     96 # mount option in your fstab file in the entry for userdata.
     97 type metadata_block_device, dev_type;
     98 
     99 # The 'misc' partition used by recovery and A/B.
    100 type misc_block_device, dev_type;
    101 
    102 # Bootctrl block device used by A/B update (update_engine, update_verifier).
    103 type bootctrl_block_device, dev_type;
    104