Skip to content
Snippets Groups Projects
device.te 3.26 KiB
Newer Older
  • Learn to ignore specific revisions
  • Stephen Smalley's avatar
    Stephen Smalley committed
    # Device types
    type device, dev_type, fs_type;
    type alarm_device, dev_type, mlstrustedobject;
    type ashmem_device, dev_type, mlstrustedobject;
    type audio_device, dev_type;
    
    type audio_timer_device, dev_type;
    type audio_seq_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type binder_device, dev_type, mlstrustedobject;
    
    type hwbinder_device, dev_type, mlstrustedobject;
    
    type vndbinder_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type block_device, dev_type;
    
    type camera_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type dm_device, dev_type;
    
    type keychord_device, dev_type;
    
    type loop_control_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type loop_device, dev_type;
    
    Mark Salyzyn's avatar
    Mark Salyzyn committed
    type pmsg_device, dev_type, mlstrustedobject;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type radio_device, dev_type;
    type ram_device, dev_type;
    
    type rtc_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type console_device, dev_type;
    type cpuctl_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type full_device, dev_type;
    
    # GPU (used by most UI apps)
    type gpu_device, dev_type, mlstrustedobject;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type graphics_device, dev_type;
    
    type hw_random_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type input_device, dev_type;
    type kmem_device, dev_type;
    
    type port_device, dev_type;
    
    type lowpan_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type mtd_device, dev_type;
    
    type mtp_device, dev_type, mlstrustedobject;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type nfc_device, dev_type;
    type ptmx_device, dev_type, mlstrustedobject;
    type kmsg_device, dev_type;
    
    Josh Gao's avatar
    Josh Gao committed
    type kmsg_debug_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type null_device, dev_type, mlstrustedobject;
    
    type random_device, dev_type, mlstrustedobject;
    
    Ruchi Kandoi's avatar
    Ruchi Kandoi committed
    type secure_element_device, dev_type;
    
    Robert Craig's avatar
    Robert Craig committed
    type sensors_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type serial_device, dev_type;
    type socket_device, dev_type;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type owntty_device, dev_type, mlstrustedobject;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    type tty_device, dev_type;
    type video_device, dev_type;
    type vcs_device, dev_type;
    
    type zero_device, dev_type, mlstrustedobject;
    
    type fuse_device, dev_type, mlstrustedobject;
    
    type iio_device, dev_type;
    
    rpcraig's avatar
    rpcraig committed
    type ion_device, dev_type, mlstrustedobject;
    
    type qtaguid_device, dev_type;
    
    rpcraig's avatar
    rpcraig committed
    type watchdog_device, dev_type;
    
    Robert Craig's avatar
    Robert Craig committed
    type uhid_device, dev_type;
    
    type uio_device, dev_type;
    
    Robert Craig's avatar
    Robert Craig committed
    type tun_device, dev_type, mlstrustedobject;
    
    type usbaccessory_device, dev_type, mlstrustedobject;
    type usb_device, dev_type, mlstrustedobject;
    
    type properties_device, dev_type;
    
    type properties_serial, dev_type;
    
    type property_info, dev_type;
    
    type i2c_device, dev_type;
    
    
    # All devices have a uart for the hci
    # attach service. The uart dev node
    # varies per device. This type
    # is used in per device policy
    type hci_attach_dev, dev_type;
    
    Robert Craig's avatar
    Robert Craig committed
    # All devices have a rpmsg device for
    
    # achieving remoteproc and rpmsg modules
    type rpmsg_device, dev_type;
    
    
    # Partition layout block device
    type root_block_device, dev_type;
    
    # factory reset protection block device
    type frp_block_device, dev_type;
    
    # System block device mounted on /system.
    type system_block_device, dev_type;
    
    # Recovery block device.
    type recovery_block_device, dev_type;
    
    
    # boot block device.
    type boot_block_device, dev_type;
    
    
    # Userdata block device mounted on /data.
    type userdata_block_device, dev_type;
    
    # Cache block device mounted on /cache.
    type cache_block_device, dev_type;
    
    
    # Block device for any swap partition.
    type swap_block_device, dev_type;
    
    
    # Metadata block device used for encryption metadata.
    # Assign this type to the partition specified by the encryptable=
    # mount option in your fstab file in the entry for userdata.
    type metadata_block_device, dev_type;
    
    
    # The 'misc' partition used by recovery and A/B.
    type misc_block_device, dev_type;