blob: 42229bdaa39725d72d8aaf36bb5711f6ca6aad7c [file] [log] [blame]
Tom Cherry5b271792020-12-08 13:18:14 -08001import /vendor/ueventd.rc
2import /odm/ueventd.rc
3import /ueventd.{ro.hardware}.rc
4
Tom Cherry7421fa12018-07-13 15:32:02 -07005firmware_directories /etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/
Tom Cherrye2910102018-12-06 13:29:30 -08006uevent_socket_rcvbuf_size 16M
Tom Cherry7421fa12018-07-13 15:32:02 -07007
Tom Cherry780a71e2017-04-04 16:30:40 -07008subsystem graphics
9 devname uevent_devpath
10 dirname /dev/graphics
11
12subsystem drm
13 devname uevent_devpath
14 dirname /dev/dri
15
Tom Cherry780a71e2017-04-04 16:30:40 -070016subsystem input
17 devname uevent_devpath
18 dirname /dev/input
19
Tom Cherry780a71e2017-04-04 16:30:40 -070020subsystem sound
21 devname uevent_devpath
22 dirname /dev/snd
Greg Hackmann95b348c2013-11-18 16:21:55 -080023
Hridya Valsaraju72a0f102020-09-11 14:42:31 -070024subsystem dma_heap
25 devname uevent_devpath
26 dirname /dev/dma_heap
Kevin Cernekee1f0dd222015-05-11 17:59:17 -070027# ueventd can only set permissions on device nodes and their associated
28# sysfs attributes, not on arbitrary paths.
29#
30# format for /dev rules: devname mode uid gid
31# format for /sys rules: nodename attr mode uid gid
32# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN"
33
Colin Cross44b65d02010-04-20 14:32:50 -070034/dev/null 0666 root root
35/dev/zero 0666 root root
36/dev/full 0666 root root
37/dev/ptmx 0666 root root
38/dev/tty 0666 root root
39/dev/random 0666 root root
40/dev/urandom 0666 root root
Alex Klyubinb2478a72013-10-03 13:31:28 -070041# Make HW RNG readable by group system to let EntropyMixer read it.
42/dev/hw_random 0440 root system
Tri Voff89b8d2019-09-24 13:00:43 -070043/dev/ashmem* 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070044/dev/binder 0666 root root
Martijn Coenenf5110ea2016-05-25 09:08:53 +020045/dev/hwbinder 0666 root root
Martijn Coenen62c5b472017-04-03 17:04:02 -070046/dev/vndbinder 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070047
Mark Salyzyn4b0313e2014-12-15 07:52:19 -080048/dev/pmsg0 0222 root log
Hridya Valsaraju72a0f102020-09-11 14:42:31 -070049/dev/dma_heap/system 0666 system system
Colin Cross44b65d02010-04-20 14:32:50 -070050
Lukasz Anaczkowskie6f8d452011-09-28 15:30:07 +020051# kms driver for drm based gpu
52/dev/dri/* 0666 root graphics
53
Colin Cross44b65d02010-04-20 14:32:50 -070054# these should not be world writable
Siarhei Vishniakou0729dd12017-05-08 15:50:55 -070055/dev/uhid 0660 uhid uhid
Siarhei Vishniakoue615b2a2018-11-27 11:21:21 -080056/dev/uinput 0660 uhid uhid
Greg Hackmannb34fed32014-03-27 15:35:58 -070057/dev/rtc0 0640 system system
Colin Cross44b65d02010-04-20 14:32:50 -070058/dev/tty0 0660 root system
59/dev/graphics/* 0660 root graphics
Michael Wright14667c12017-02-21 16:46:50 +000060/dev/input/* 0660 root input
Siarhei Vishniakou38d43522017-12-22 17:06:24 -080061/dev/v4l-touch* 0660 root input
Colin Cross44b65d02010-04-20 14:32:50 -070062/dev/snd/* 0660 system audio
Andy Hung3fddf922018-12-11 04:10:34 +000063/dev/bus/usb/* 0660 root usb
64/dev/mtp_usb 0660 root mtp
Mike Lockwood45e96d02011-01-29 23:39:29 -050065/dev/usb_accessory 0660 root usb
Chia-chi Yeh69f43c92011-05-12 13:43:34 -070066/dev/tun 0660 system vpn
Colin Cross44b65d02010-04-20 14:32:50 -070067
68# CDMA radio interface MUX
Colin Cross44b65d02010-04-20 14:32:50 -070069/dev/ppp 0660 radio vpn
Brian Swetland146481b2010-10-26 15:38:00 -070070
71# sysfs properties
Arve Hjønnevåg77702522014-10-15 18:02:35 -070072/sys/devices/platform/trusty.* trusty_version 0440 root log
Brian Swetland146481b2010-10-26 15:38:00 -070073/sys/devices/virtual/input/input* enable 0660 root input
74/sys/devices/virtual/input/input* poll_delay 0660 root input
Mike Lockwoodddc4cfd2011-02-02 15:23:40 -050075/sys/devices/virtual/usb_composite/* enable 0664 root system
Ruchi Kandoi75b287b2014-04-29 19:14:37 -070076/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
77/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system