blob: 3101974a2886ceb20ff88aa322b0585711135505 [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
Tri Voff89b8d2019-09-24 13:00:43 -070040/dev/ashmem* 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070041/dev/binder 0666 root root
Martijn Coenenf5110ea2016-05-25 09:08:53 +020042/dev/hwbinder 0666 root root
Martijn Coenen62c5b472017-04-03 17:04:02 -070043/dev/vndbinder 0666 root root
Colin Cross44b65d02010-04-20 14:32:50 -070044
Mark Salyzyn4b0313e2014-12-15 07:52:19 -080045/dev/pmsg0 0222 root log
John Stultzdc01a022020-12-14 23:27:22 +000046/dev/dma_heap/system 0444 system system
John Stultzefb6e072020-12-11 07:05:16 +000047/dev/dma_heap/system-uncached 0444 system system
Hridya Valsarajuf7c0f3d2021-01-12 12:45:50 -080048/dev/dma_heap/system-secure 0444 system system
Colin Cross44b65d02010-04-20 14:32:50 -070049
Lukasz Anaczkowskie6f8d452011-09-28 15:30:07 +020050# kms driver for drm based gpu
51/dev/dri/* 0666 root graphics
52
Colin Cross44b65d02010-04-20 14:32:50 -070053# these should not be world writable
Siarhei Vishniakou0729dd12017-05-08 15:50:55 -070054/dev/uhid 0660 uhid uhid
Siarhei Vishniakoue615b2a2018-11-27 11:21:21 -080055/dev/uinput 0660 uhid uhid
Greg Hackmannb34fed32014-03-27 15:35:58 -070056/dev/rtc0 0640 system system
Colin Cross44b65d02010-04-20 14:32:50 -070057/dev/tty0 0660 root system
58/dev/graphics/* 0660 root graphics
Michael Wright14667c12017-02-21 16:46:50 +000059/dev/input/* 0660 root input
Siarhei Vishniakou38d43522017-12-22 17:06:24 -080060/dev/v4l-touch* 0660 root input
Colin Cross44b65d02010-04-20 14:32:50 -070061/dev/snd/* 0660 system audio
Andy Hung3fddf922018-12-11 04:10:34 +000062/dev/bus/usb/* 0660 root usb
63/dev/mtp_usb 0660 root mtp
Mike Lockwood45e96d02011-01-29 23:39:29 -050064/dev/usb_accessory 0660 root usb
Chia-chi Yeh69f43c92011-05-12 13:43:34 -070065/dev/tun 0660 system vpn
Colin Cross44b65d02010-04-20 14:32:50 -070066
67# CDMA radio interface MUX
Colin Cross44b65d02010-04-20 14:32:50 -070068/dev/ppp 0660 radio vpn
Brian Swetland146481b2010-10-26 15:38:00 -070069
Andrew Walbran3aedc7e2021-05-21 13:14:39 +000070# Virtualization is managed by VirtualizationService.
71/dev/kvm 0600 virtualizationservice root
72/dev/vhost-vsock 0600 virtualizationservice root
Andrew Walbrane76a7ef2021-04-12 14:43:46 +000073
Brian Swetland146481b2010-10-26 15:38:00 -070074# sysfs properties
Arve Hjønnevåg77702522014-10-15 18:02:35 -070075/sys/devices/platform/trusty.* trusty_version 0440 root log
Brian Swetland146481b2010-10-26 15:38:00 -070076/sys/devices/virtual/input/input* enable 0660 root input
77/sys/devices/virtual/input/input* poll_delay 0660 root input
Mike Lockwoodddc4cfd2011-02-02 15:23:40 -050078/sys/devices/virtual/usb_composite/* enable 0664 root system
Ruchi Kandoi75b287b2014-04-29 19:14:37 -070079/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
80/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system
Chris Yef41e3342021-01-10 09:37:59 -080081/sys/devices/virtual/misc/uhid/*/leds/* brightness 0664 system system
82/sys/devices/virtual/misc/uhid/*/leds/* multi_intensity 0664 system system