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