blob: 1994bdb8c82b35b692062c67c8e0f5806f206a60 [file] [log] [blame]
Tom Cherry7421fa12018-07-13 15:32:02 -07001firmware_directories /etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/
Tom Cherrye2910102018-12-06 13:29:30 -08002uevent_socket_rcvbuf_size 16M
Tom Cherry7421fa12018-07-13 15:32:02 -07003
Tom Cherry780a71e2017-04-04 16:30:40 -07004subsystem graphics
5 devname uevent_devpath
6 dirname /dev/graphics
7
8subsystem drm
9 devname uevent_devpath
10 dirname /dev/dri
11
Tom Cherry780a71e2017-04-04 16:30:40 -070012subsystem input
13 devname uevent_devpath
14 dirname /dev/input
15
Tom Cherry780a71e2017-04-04 16:30:40 -070016subsystem sound
17 devname uevent_devpath
18 dirname /dev/snd
Greg Hackmann95b348c2013-11-18 16:21:55 -080019
Hridya Valsaraju72a0f102020-09-11 14:42:31 -070020subsystem dma_heap
21 devname uevent_devpath
22 dirname /dev/dma_heap
Kevin Cernekee1f0dd222015-05-11 17:59:17 -070023# ueventd can only set permissions on device nodes and their associated
24# sysfs attributes, not on arbitrary paths.
25#
26# format for /dev rules: devname mode uid gid
27# format for /sys rules: nodename attr mode uid gid
28# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN"
29
Colin Cross44b65d02010-04-20 14:32:50 -070030/dev/null 0666 root root
31/dev/zero 0666 root root
32/dev/full 0666 root root
33/dev/ptmx 0666 root root
34/dev/tty 0666 root root
35/dev/random 0666 root root
36/dev/urandom 0666 root root
Alex Klyubinb2478a72013-10-03 13:31:28 -070037# Make HW RNG readable by group system to let EntropyMixer read it.
38/dev/hw_random 0440 root system
Tri Voff89b8d2019-09-24 13:00:43 -070039/dev/ashmem* 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070040/dev/binder 0666 root root
Martijn Coenenf5110ea2016-05-25 09:08:53 +020041/dev/hwbinder 0666 root root
Martijn Coenen62c5b472017-04-03 17:04:02 -070042/dev/vndbinder 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070043
Mark Salyzyn4b0313e2014-12-15 07:52:19 -080044/dev/pmsg0 0222 root log
Hridya Valsaraju72a0f102020-09-11 14:42:31 -070045/dev/dma_heap/system 0666 system system
Colin Cross44b65d02010-04-20 14:32:50 -070046
Lukasz Anaczkowskie6f8d452011-09-28 15:30:07 +020047# kms driver for drm based gpu
48/dev/dri/* 0666 root graphics
49
Colin Cross44b65d02010-04-20 14:32:50 -070050# these should not be world writable
Siarhei Vishniakou0729dd12017-05-08 15:50:55 -070051/dev/uhid 0660 uhid uhid
Siarhei Vishniakoue615b2a2018-11-27 11:21:21 -080052/dev/uinput 0660 uhid uhid
Greg Hackmannb34fed32014-03-27 15:35:58 -070053/dev/rtc0 0640 system system
Colin Cross44b65d02010-04-20 14:32:50 -070054/dev/tty0 0660 root system
55/dev/graphics/* 0660 root graphics
Michael Wright14667c12017-02-21 16:46:50 +000056/dev/input/* 0660 root input
Siarhei Vishniakou38d43522017-12-22 17:06:24 -080057/dev/v4l-touch* 0660 root input
Colin Cross44b65d02010-04-20 14:32:50 -070058/dev/snd/* 0660 system audio
Andy Hung3fddf922018-12-11 04:10:34 +000059/dev/bus/usb/* 0660 root usb
60/dev/mtp_usb 0660 root mtp
Mike Lockwood45e96d02011-01-29 23:39:29 -050061/dev/usb_accessory 0660 root usb
Chia-chi Yeh69f43c92011-05-12 13:43:34 -070062/dev/tun 0660 system vpn
Colin Cross44b65d02010-04-20 14:32:50 -070063
64# CDMA radio interface MUX
Colin Cross44b65d02010-04-20 14:32:50 -070065/dev/ppp 0660 radio vpn
Brian Swetland146481b2010-10-26 15:38:00 -070066
67# sysfs properties
Arve Hjønnevåg77702522014-10-15 18:02:35 -070068/sys/devices/platform/trusty.* trusty_version 0440 root log
Brian Swetland146481b2010-10-26 15:38:00 -070069/sys/devices/virtual/input/input* enable 0660 root input
70/sys/devices/virtual/input/input* poll_delay 0660 root input
Mike Lockwoodddc4cfd2011-02-02 15:23:40 -050071/sys/devices/virtual/usb_composite/* enable 0664 root system
Ruchi Kandoi75b287b2014-04-29 19:14:37 -070072/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
73/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system