blob: 9c2cdf27f2683aca88415a31597abbc7006d0d09 [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
Kevin Cernekee1f0dd222015-05-11 17:59:17 -070020# ueventd can only set permissions on device nodes and their associated
21# sysfs attributes, not on arbitrary paths.
22#
23# format for /dev rules: devname mode uid gid
24# format for /sys rules: nodename attr mode uid gid
25# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN"
26
Colin Cross44b65d02010-04-20 14:32:50 -070027/dev/null 0666 root root
28/dev/zero 0666 root root
29/dev/full 0666 root root
30/dev/ptmx 0666 root root
31/dev/tty 0666 root root
32/dev/random 0666 root root
33/dev/urandom 0666 root root
Alex Klyubinb2478a72013-10-03 13:31:28 -070034# Make HW RNG readable by group system to let EntropyMixer read it.
35/dev/hw_random 0440 root system
Tri Voff89b8d2019-09-24 13:00:43 -070036/dev/ashmem* 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070037/dev/binder 0666 root root
Martijn Coenenf5110ea2016-05-25 09:08:53 +020038/dev/hwbinder 0666 root root
Martijn Coenen62c5b472017-04-03 17:04:02 -070039/dev/vndbinder 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070040
Mark Salyzyn4b0313e2014-12-15 07:52:19 -080041/dev/pmsg0 0222 root log
Colin Cross44b65d02010-04-20 14:32:50 -070042
Lukasz Anaczkowskie6f8d452011-09-28 15:30:07 +020043# kms driver for drm based gpu
44/dev/dri/* 0666 root graphics
45
Colin Cross44b65d02010-04-20 14:32:50 -070046# these should not be world writable
Siarhei Vishniakou0729dd12017-05-08 15:50:55 -070047/dev/uhid 0660 uhid uhid
Siarhei Vishniakoue615b2a2018-11-27 11:21:21 -080048/dev/uinput 0660 uhid uhid
Greg Hackmannb34fed32014-03-27 15:35:58 -070049/dev/rtc0 0640 system system
Colin Cross44b65d02010-04-20 14:32:50 -070050/dev/tty0 0660 root system
51/dev/graphics/* 0660 root graphics
Michael Wright14667c12017-02-21 16:46:50 +000052/dev/input/* 0660 root input
Siarhei Vishniakou38d43522017-12-22 17:06:24 -080053/dev/v4l-touch* 0660 root input
Colin Cross44b65d02010-04-20 14:32:50 -070054/dev/snd/* 0660 system audio
Andy Hung3fddf922018-12-11 04:10:34 +000055/dev/bus/usb/* 0660 root usb
56/dev/mtp_usb 0660 root mtp
Mike Lockwood45e96d02011-01-29 23:39:29 -050057/dev/usb_accessory 0660 root usb
Chia-chi Yeh69f43c92011-05-12 13:43:34 -070058/dev/tun 0660 system vpn
Colin Cross44b65d02010-04-20 14:32:50 -070059
60# CDMA radio interface MUX
Colin Cross44b65d02010-04-20 14:32:50 -070061/dev/ppp 0660 radio vpn
Brian Swetland146481b2010-10-26 15:38:00 -070062
63# sysfs properties
Arve Hjønnevåg77702522014-10-15 18:02:35 -070064/sys/devices/platform/trusty.* trusty_version 0440 root log
Brian Swetland146481b2010-10-26 15:38:00 -070065/sys/devices/virtual/input/input* enable 0660 root input
66/sys/devices/virtual/input/input* poll_delay 0660 root input
Mike Lockwoodddc4cfd2011-02-02 15:23:40 -050067/sys/devices/virtual/usb_composite/* enable 0664 root system
Ruchi Kandoi75b287b2014-04-29 19:14:37 -070068/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
69/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system