blob: 4ec59afe9932839663c088d09f0389c61507a5dc [file] [log] [blame]
Tom Cherry71dd7062020-12-11 09:26:55 -08001import /vendor/etc/ueventd.rc
2import /odm/etc/ueventd.rc
Tom Cherry5b271792020-12-08 13:18:14 -08003
Tom Cherry7421fa12018-07-13 15:32:02 -07004firmware_directories /etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/
Tom Cherrye2910102018-12-06 13:29:30 -08005uevent_socket_rcvbuf_size 16M
Tom Cherry7421fa12018-07-13 15:32:02 -07006
Tom Cherry780a71e2017-04-04 16:30:40 -07007subsystem graphics
8 devname uevent_devpath
9 dirname /dev/graphics
10
11subsystem drm
12 devname uevent_devpath
13 dirname /dev/dri
14
Tom Cherry780a71e2017-04-04 16:30:40 -070015subsystem input
16 devname uevent_devpath
17 dirname /dev/input
18
Tom Cherry780a71e2017-04-04 16:30:40 -070019subsystem sound
20 devname uevent_devpath
21 dirname /dev/snd
Greg Hackmann95b348c2013-11-18 16:21:55 -080022
Hridya Valsaraju72a0f102020-09-11 14:42:31 -070023subsystem dma_heap
24 devname uevent_devpath
25 dirname /dev/dma_heap
Kevin Cernekee1f0dd222015-05-11 17:59:17 -070026# 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
Colin Cross44b65d02010-04-20 14:32:50 -070033/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
Pete Bentley841946b2022-09-23 12:09:32 +010040# Aside from kernel threads, only prng_seeder needs access to HW RNG
41/dev/hw_random 0400 prng_seeder prng_seeder
Tri Voff89b8d2019-09-24 13:00:43 -070042/dev/ashmem* 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070043/dev/binder 0666 root root
Martijn Coenenf5110ea2016-05-25 09:08:53 +020044/dev/hwbinder 0666 root root
Martijn Coenen62c5b472017-04-03 17:04:02 -070045/dev/vndbinder 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070046
Mark Salyzyn4b0313e2014-12-15 07:52:19 -080047/dev/pmsg0 0222 root log
John Stultzdc01a022020-12-14 23:27:22 +000048/dev/dma_heap/system 0444 system system
John Stultzefb6e072020-12-11 07:05:16 +000049/dev/dma_heap/system-uncached 0444 system system
Hridya Valsarajuf7c0f3d2021-01-12 12:45:50 -080050/dev/dma_heap/system-secure 0444 system system
Colin Cross44b65d02010-04-20 14:32:50 -070051
Lukasz Anaczkowskie6f8d452011-09-28 15:30:07 +020052# kms driver for drm based gpu
53/dev/dri/* 0666 root graphics
54
Colin Cross44b65d02010-04-20 14:32:50 -070055# these should not be world writable
Siarhei Vishniakou0729dd12017-05-08 15:50:55 -070056/dev/uhid 0660 uhid uhid
Siarhei Vishniakoue615b2a2018-11-27 11:21:21 -080057/dev/uinput 0660 uhid uhid
Greg Hackmannb34fed32014-03-27 15:35:58 -070058/dev/rtc0 0640 system system
Colin Cross44b65d02010-04-20 14:32:50 -070059/dev/tty0 0660 root system
60/dev/graphics/* 0660 root graphics
Michael Wright14667c12017-02-21 16:46:50 +000061/dev/input/* 0660 root input
Siarhei Vishniakou38d43522017-12-22 17:06:24 -080062/dev/v4l-touch* 0660 root input
Colin Cross44b65d02010-04-20 14:32:50 -070063/dev/snd/* 0660 system audio
Andy Hung3fddf922018-12-11 04:10:34 +000064/dev/bus/usb/* 0660 root usb
65/dev/mtp_usb 0660 root mtp
Mike Lockwood45e96d02011-01-29 23:39:29 -050066/dev/usb_accessory 0660 root usb
Chia-chi Yeh69f43c92011-05-12 13:43:34 -070067/dev/tun 0660 system vpn
Colin Cross44b65d02010-04-20 14:32:50 -070068
69# CDMA radio interface MUX
Colin Cross44b65d02010-04-20 14:32:50 -070070/dev/ppp 0660 radio vpn
Brian Swetland146481b2010-10-26 15:38:00 -070071
Jiyong Park5b178322022-04-01 13:06:50 +090072/dev/kvm 0600 system system
73/dev/vhost-vsock 0600 system system
Andrew Walbrane76a7ef2021-04-12 14:43:46 +000074
Brian Swetland146481b2010-10-26 15:38:00 -070075# sysfs properties
Arve Hjønnevåg77702522014-10-15 18:02:35 -070076/sys/devices/platform/trusty.* trusty_version 0440 root log
Brian Swetland146481b2010-10-26 15:38:00 -070077/sys/devices/virtual/input/input* enable 0660 root input
78/sys/devices/virtual/input/input* poll_delay 0660 root input
Mike Lockwoodddc4cfd2011-02-02 15:23:40 -050079/sys/devices/virtual/usb_composite/* enable 0664 root system
Ruchi Kandoi75b287b2014-04-29 19:14:37 -070080/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
Chris Yef41e3342021-01-10 09:37:59 -080082/sys/devices/virtual/misc/uhid/*/leds/* brightness 0664 system system
83/sys/devices/virtual/misc/uhid/*/leds/* multi_intensity 0664 system system