Tom Cherry | 71dd706 | 2020-12-11 09:26:55 -0800 | [diff] [blame] | 1 | import /vendor/etc/ueventd.rc |
| 2 | import /odm/etc/ueventd.rc |
Tom Cherry | 5b27179 | 2020-12-08 13:18:14 -0800 | [diff] [blame] | 3 | |
Tom Cherry | 7421fa1 | 2018-07-13 15:32:02 -0700 | [diff] [blame] | 4 | firmware_directories /etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/ |
Tom Cherry | e291010 | 2018-12-06 13:29:30 -0800 | [diff] [blame] | 5 | uevent_socket_rcvbuf_size 16M |
Tom Cherry | 7421fa1 | 2018-07-13 15:32:02 -0700 | [diff] [blame] | 6 | |
Tom Cherry | 780a71e | 2017-04-04 16:30:40 -0700 | [diff] [blame] | 7 | subsystem graphics |
| 8 | devname uevent_devpath |
| 9 | dirname /dev/graphics |
| 10 | |
| 11 | subsystem drm |
| 12 | devname uevent_devpath |
| 13 | dirname /dev/dri |
| 14 | |
Tom Cherry | 780a71e | 2017-04-04 16:30:40 -0700 | [diff] [blame] | 15 | subsystem input |
| 16 | devname uevent_devpath |
| 17 | dirname /dev/input |
| 18 | |
Tom Cherry | 780a71e | 2017-04-04 16:30:40 -0700 | [diff] [blame] | 19 | subsystem sound |
| 20 | devname uevent_devpath |
| 21 | dirname /dev/snd |
Greg Hackmann | 95b348c | 2013-11-18 16:21:55 -0800 | [diff] [blame] | 22 | |
Hridya Valsaraju | 72a0f10 | 2020-09-11 14:42:31 -0700 | [diff] [blame] | 23 | subsystem dma_heap |
| 24 | devname uevent_devpath |
| 25 | dirname /dev/dma_heap |
Kevin Cernekee | 1f0dd22 | 2015-05-11 17:59:17 -0700 | [diff] [blame] | 26 | # 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 Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 33 | /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 Vo | ff89b8d | 2019-09-24 13:00:43 -0700 | [diff] [blame] | 40 | /dev/ashmem* 0666 root root |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 41 | /dev/binder 0666 root root |
Martijn Coenen | f5110ea | 2016-05-25 09:08:53 +0200 | [diff] [blame] | 42 | /dev/hwbinder 0666 root root |
Martijn Coenen | 62c5b47 | 2017-04-03 17:04:02 -0700 | [diff] [blame] | 43 | /dev/vndbinder 0666 root root |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 44 | |
Mark Salyzyn | 4b0313e | 2014-12-15 07:52:19 -0800 | [diff] [blame] | 45 | /dev/pmsg0 0222 root log |
John Stultz | dc01a02 | 2020-12-14 23:27:22 +0000 | [diff] [blame] | 46 | /dev/dma_heap/system 0444 system system |
John Stultz | efb6e07 | 2020-12-11 07:05:16 +0000 | [diff] [blame] | 47 | /dev/dma_heap/system-uncached 0444 system system |
Hridya Valsaraju | f7c0f3d | 2021-01-12 12:45:50 -0800 | [diff] [blame] | 48 | /dev/dma_heap/system-secure 0444 system system |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 49 | |
Lukasz Anaczkowski | e6f8d45 | 2011-09-28 15:30:07 +0200 | [diff] [blame] | 50 | # kms driver for drm based gpu |
| 51 | /dev/dri/* 0666 root graphics |
| 52 | |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 53 | # these should not be world writable |
Siarhei Vishniakou | 0729dd1 | 2017-05-08 15:50:55 -0700 | [diff] [blame] | 54 | /dev/uhid 0660 uhid uhid |
Siarhei Vishniakou | e615b2a | 2018-11-27 11:21:21 -0800 | [diff] [blame] | 55 | /dev/uinput 0660 uhid uhid |
Greg Hackmann | b34fed3 | 2014-03-27 15:35:58 -0700 | [diff] [blame] | 56 | /dev/rtc0 0640 system system |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 57 | /dev/tty0 0660 root system |
| 58 | /dev/graphics/* 0660 root graphics |
Michael Wright | 14667c1 | 2017-02-21 16:46:50 +0000 | [diff] [blame] | 59 | /dev/input/* 0660 root input |
Siarhei Vishniakou | 38d4352 | 2017-12-22 17:06:24 -0800 | [diff] [blame] | 60 | /dev/v4l-touch* 0660 root input |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 61 | /dev/snd/* 0660 system audio |
Andy Hung | 3fddf92 | 2018-12-11 04:10:34 +0000 | [diff] [blame] | 62 | /dev/bus/usb/* 0660 root usb |
| 63 | /dev/mtp_usb 0660 root mtp |
Mike Lockwood | 45e96d0 | 2011-01-29 23:39:29 -0500 | [diff] [blame] | 64 | /dev/usb_accessory 0660 root usb |
Chia-chi Yeh | 69f43c9 | 2011-05-12 13:43:34 -0700 | [diff] [blame] | 65 | /dev/tun 0660 system vpn |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 66 | |
| 67 | # CDMA radio interface MUX |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 68 | /dev/ppp 0660 radio vpn |
Brian Swetland | 146481b | 2010-10-26 15:38:00 -0700 | [diff] [blame] | 69 | |
Andrew Walbran | 3aedc7e | 2021-05-21 13:14:39 +0000 | [diff] [blame] | 70 | # Virtualization is managed by VirtualizationService. |
| 71 | /dev/kvm 0600 virtualizationservice root |
| 72 | /dev/vhost-vsock 0600 virtualizationservice root |
Andrew Walbran | e76a7ef | 2021-04-12 14:43:46 +0000 | [diff] [blame] | 73 | |
Brian Swetland | 146481b | 2010-10-26 15:38:00 -0700 | [diff] [blame] | 74 | # sysfs properties |
Arve Hjønnevåg | 7770252 | 2014-10-15 18:02:35 -0700 | [diff] [blame] | 75 | /sys/devices/platform/trusty.* trusty_version 0440 root log |
Brian Swetland | 146481b | 2010-10-26 15:38:00 -0700 | [diff] [blame] | 76 | /sys/devices/virtual/input/input* enable 0660 root input |
| 77 | /sys/devices/virtual/input/input* poll_delay 0660 root input |
Mike Lockwood | ddc4cfd | 2011-02-02 15:23:40 -0500 | [diff] [blame] | 78 | /sys/devices/virtual/usb_composite/* enable 0664 root system |
Ruchi Kandoi | 75b287b | 2014-04-29 19:14:37 -0700 | [diff] [blame] | 79 | /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 Ye | f41e334 | 2021-01-10 09:37:59 -0800 | [diff] [blame] | 81 | /sys/devices/virtual/misc/uhid/*/leds/* brightness 0664 system system |
| 82 | /sys/devices/virtual/misc/uhid/*/leds/* multi_intensity 0664 system system |