1import /vendor/etc/ueventd.rc 2import /odm/etc/ueventd.rc 3 4firmware_directories /etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/ 5uevent_socket_rcvbuf_size 16M 6 7subsystem graphics 8 devname uevent_devpath 9 dirname /dev/graphics 10 11subsystem drm 12 devname uevent_devpath 13 dirname /dev/dri 14 15subsystem input 16 devname uevent_devpath 17 dirname /dev/input 18 19subsystem sound 20 devname uevent_devpath 21 dirname /dev/snd 22 23subsystem dma_heap 24 devname uevent_devpath 25 dirname /dev/dma_heap 26# ueventd can only set permissions on device nodes and their associated 27# sysfs attributes, not on arbitrary paths. 28# 29# format for /dev rules: devname mode uid gid 30# format for /sys rules: nodename attr mode uid gid 31# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" 32 33/dev/null 0666 root root 34/dev/zero 0666 root root 35/dev/full 0666 root root 36/dev/ptmx 0666 root root 37/dev/tty 0666 root root 38/dev/random 0666 root root 39/dev/urandom 0666 root root 40# Aside from kernel threads, only prng_seeder needs access to HW RNG 41/dev/hw_random 0400 prng_seeder prng_seeder 42/dev/ashmem* 0666 root root 43/dev/binder 0666 root root 44/dev/hwbinder 0666 root root 45/dev/vndbinder 0666 root root 46 47/dev/pmsg0 0222 root log 48/dev/dma_heap/system 0444 system system 49/dev/dma_heap/system-uncached 0444 system system 50/dev/dma_heap/system-secure 0444 system system 51 52# kms driver for drm based gpu 53/dev/dri/* 0666 root graphics 54 55# these should not be world writable 56/dev/uhid 0660 uhid uhid 57/dev/uinput 0660 uhid uhid 58/dev/rtc0 0640 system system 59/dev/tty0 0660 root system 60/dev/graphics/* 0660 root graphics 61/dev/input/* 0660 root input 62/dev/v4l-touch* 0660 root input 63/dev/snd/* 0660 system audio 64/dev/bus/usb/* 0660 root usb 65/dev/mtp_usb 0660 root mtp 66/dev/usb_accessory 0660 root usb 67/dev/tun 0660 system vpn 68 69# CDMA radio interface MUX 70/dev/ppp 0660 radio vpn 71 72/dev/kvm 0666 root root 73/dev/vhost-vsock 0666 root root 74 75# sysfs properties 76/sys/devices/platform/trusty.* trusty_version 0440 root log 77/sys/devices/virtual/input/input* enable 0660 root input 78/sys/devices/virtual/input/input* poll_delay 0660 root input 79/sys/devices/virtual/usb_composite/* enable 0664 root system 80/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system 81/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system 82/sys/devices/virtual/misc/uhid/*/leds/* brightness 0664 system system 83/sys/devices/virtual/misc/uhid/*/leds/* multi_intensity 0664 system system 84