Greg Hackmann | 95b348c | 2013-11-18 16:21:55 -0800 | [diff] [blame] | 1 | subsystem adf |
Tom Cherry | 780a71e | 2017-04-04 16:30:40 -0700 | [diff] [blame] | 2 | devname uevent_devname |
| 3 | |
| 4 | subsystem graphics |
| 5 | devname uevent_devpath |
| 6 | dirname /dev/graphics |
| 7 | |
| 8 | subsystem drm |
| 9 | devname uevent_devpath |
| 10 | dirname /dev/dri |
| 11 | |
| 12 | subsystem oncrpc |
| 13 | devname uevent_devpath |
| 14 | dirname /dev/oncrpc |
| 15 | |
| 16 | subsystem adsp |
| 17 | devname uevent_devpath |
| 18 | dirname /dev/adsp |
| 19 | |
| 20 | subsystem msm_camera |
| 21 | devname uevent_devpath |
| 22 | dirname /dev/msm_camera |
| 23 | |
| 24 | subsystem input |
| 25 | devname uevent_devpath |
| 26 | dirname /dev/input |
| 27 | |
| 28 | subsystem mtd |
| 29 | devname uevent_devpath |
| 30 | dirname /dev/mtd |
| 31 | |
| 32 | subsystem sound |
| 33 | devname uevent_devpath |
| 34 | dirname /dev/snd |
Greg Hackmann | 95b348c | 2013-11-18 16:21:55 -0800 | [diff] [blame] | 35 | |
Kevin Cernekee | 1f0dd22 | 2015-05-11 17:59:17 -0700 | [diff] [blame] | 36 | # ueventd can only set permissions on device nodes and their associated |
| 37 | # sysfs attributes, not on arbitrary paths. |
| 38 | # |
| 39 | # format for /dev rules: devname mode uid gid |
| 40 | # format for /sys rules: nodename attr mode uid gid |
| 41 | # shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" |
| 42 | |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 43 | /dev/null 0666 root root |
| 44 | /dev/zero 0666 root root |
| 45 | /dev/full 0666 root root |
| 46 | /dev/ptmx 0666 root root |
| 47 | /dev/tty 0666 root root |
| 48 | /dev/random 0666 root root |
| 49 | /dev/urandom 0666 root root |
Alex Klyubin | b2478a7 | 2013-10-03 13:31:28 -0700 | [diff] [blame] | 50 | # Make HW RNG readable by group system to let EntropyMixer read it. |
| 51 | /dev/hw_random 0440 root system |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 52 | /dev/ashmem 0666 root root |
| 53 | /dev/binder 0666 root root |
Martijn Coenen | f5110ea | 2016-05-25 09:08:53 +0200 | [diff] [blame] | 54 | /dev/hwbinder 0666 root root |
Martijn Coenen | 62c5b47 | 2017-04-03 17:04:02 -0700 | [diff] [blame] | 55 | /dev/vndbinder 0666 root root |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 56 | |
Mark Salyzyn | 4b0313e | 2014-12-15 07:52:19 -0800 | [diff] [blame] | 57 | /dev/pmsg0 0222 root log |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 58 | |
| 59 | # the msm hw3d client device node is world writable/readable. |
| 60 | /dev/msm_hw3dc 0666 root root |
| 61 | |
| 62 | # gpu driver for adreno200 is globally accessible |
| 63 | /dev/kgsl 0666 root root |
| 64 | |
Lukasz Anaczkowski | e6f8d45 | 2011-09-28 15:30:07 +0200 | [diff] [blame] | 65 | # kms driver for drm based gpu |
| 66 | /dev/dri/* 0666 root graphics |
| 67 | |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 68 | # these should not be world writable |
| 69 | /dev/diag 0660 radio radio |
| 70 | /dev/diag_arm9 0660 radio radio |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 71 | /dev/ttyMSM0 0600 bluetooth bluetooth |
Siarhei Vishniakou | 0729dd1 | 2017-05-08 15:50:55 -0700 | [diff] [blame] | 72 | /dev/uhid 0660 uhid uhid |
Ajay Panicker | 604208e | 2016-09-20 11:52:14 -0700 | [diff] [blame] | 73 | /dev/uinput 0660 system bluetooth |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 74 | /dev/alarm 0664 system radio |
Greg Hackmann | b34fed3 | 2014-03-27 15:35:58 -0700 | [diff] [blame] | 75 | /dev/rtc0 0640 system system |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 76 | /dev/tty0 0660 root system |
| 77 | /dev/graphics/* 0660 root graphics |
| 78 | /dev/msm_hw3dm 0660 system graphics |
Michael Wright | 14667c1 | 2017-02-21 16:46:50 +0000 | [diff] [blame] | 79 | /dev/input/* 0660 root input |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 80 | /dev/eac 0660 root audio |
| 81 | /dev/cam 0660 root camera |
| 82 | /dev/pmem 0660 system graphics |
| 83 | /dev/pmem_adsp* 0660 system audio |
| 84 | /dev/pmem_camera* 0660 system camera |
| 85 | /dev/oncrpc/* 0660 root system |
| 86 | /dev/adsp/* 0660 system audio |
| 87 | /dev/snd/* 0660 system audio |
| 88 | /dev/mt9t013 0660 system system |
| 89 | /dev/msm_camera/* 0660 system system |
| 90 | /dev/akm8976_daemon 0640 compass system |
| 91 | /dev/akm8976_aot 0640 compass system |
| 92 | /dev/akm8973_daemon 0640 compass system |
| 93 | /dev/akm8973_aot 0640 compass system |
| 94 | /dev/bma150 0640 compass system |
| 95 | /dev/cm3602 0640 compass system |
| 96 | /dev/akm8976_pffd 0640 compass system |
| 97 | /dev/lightsensor 0640 system system |
| 98 | /dev/msm_pcm_out* 0660 system audio |
| 99 | /dev/msm_pcm_in* 0660 system audio |
| 100 | /dev/msm_pcm_ctl* 0660 system audio |
| 101 | /dev/msm_snd* 0660 system audio |
| 102 | /dev/msm_mp3* 0660 system audio |
| 103 | /dev/audience_a1026* 0660 system audio |
| 104 | /dev/tpa2018d1* 0660 system audio |
| 105 | /dev/msm_audpre 0660 system audio |
| 106 | /dev/msm_audio_ctl 0660 system audio |
| 107 | /dev/htc-acoustic 0660 system audio |
| 108 | /dev/vdec 0660 system audio |
| 109 | /dev/q6venc 0660 system audio |
| 110 | /dev/snd/dsp 0660 system audio |
| 111 | /dev/snd/dsp1 0660 system audio |
| 112 | /dev/snd/mixer 0660 system audio |
| 113 | /dev/smd0 0640 radio radio |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 114 | /dev/qmi 0640 radio radio |
| 115 | /dev/qmi0 0640 radio radio |
| 116 | /dev/qmi1 0640 radio radio |
| 117 | /dev/qmi2 0640 radio radio |
Mike Lockwood | b717dc8 | 2010-05-06 13:30:09 -0400 | [diff] [blame] | 118 | /dev/bus/usb/* 0660 root usb |
Mike Lockwood | af7bdc6 | 2011-01-10 08:22:30 -0500 | [diff] [blame] | 119 | /dev/mtp_usb 0660 root mtp |
Mike Lockwood | 45e96d0 | 2011-01-29 23:39:29 -0500 | [diff] [blame] | 120 | /dev/usb_accessory 0660 root usb |
Chia-chi Yeh | 69f43c9 | 2011-05-12 13:43:34 -0700 | [diff] [blame] | 121 | /dev/tun 0660 system vpn |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 122 | |
| 123 | # CDMA radio interface MUX |
| 124 | /dev/ts0710mux* 0640 radio radio |
| 125 | /dev/ppp 0660 radio vpn |
Brian Swetland | 146481b | 2010-10-26 15:38:00 -0700 | [diff] [blame] | 126 | |
| 127 | # sysfs properties |
Arve Hjønnevåg | 7770252 | 2014-10-15 18:02:35 -0700 | [diff] [blame] | 128 | /sys/devices/platform/trusty.* trusty_version 0440 root log |
Brian Swetland | 146481b | 2010-10-26 15:38:00 -0700 | [diff] [blame] | 129 | /sys/devices/virtual/input/input* enable 0660 root input |
| 130 | /sys/devices/virtual/input/input* poll_delay 0660 root input |
Mike Lockwood | ddc4cfd | 2011-02-02 15:23:40 -0500 | [diff] [blame] | 131 | /sys/devices/virtual/usb_composite/* enable 0664 root system |
Ruchi Kandoi | 75b287b | 2014-04-29 19:14:37 -0700 | [diff] [blame] | 132 | /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system |
| 133 | /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system |
Terry Heo | bf81356 | 2015-04-08 15:36:11 +0900 | [diff] [blame] | 134 | |
| 135 | # DVB API device nodes |
| 136 | /dev/dvb* 0660 root system |