ueventd.rc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. firmware_directories /etc/firmware/ /odm/firmware/ /vendor/firmware/ /firmware/image/
  2. uevent_socket_rcvbuf_size 16M
  3. subsystem graphics
  4. devname uevent_devpath
  5. dirname /dev/graphics
  6. subsystem drm
  7. devname uevent_devpath
  8. dirname /dev/dri
  9. subsystem input
  10. devname uevent_devpath
  11. dirname /dev/input
  12. subsystem sound
  13. devname uevent_devpath
  14. dirname /dev/snd
  15. # ueventd can only set permissions on device nodes and their associated
  16. # sysfs attributes, not on arbitrary paths.
  17. #
  18. # format for /dev rules: devname mode uid gid
  19. # format for /sys rules: nodename attr mode uid gid
  20. # shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN"
  21. /dev/null 0666 root root
  22. /dev/zero 0666 root root
  23. /dev/full 0666 root root
  24. /dev/ptmx 0666 root root
  25. /dev/tty 0666 root root
  26. /dev/random 0666 root root
  27. /dev/urandom 0666 root root
  28. # Make HW RNG readable by group system to let EntropyMixer read it.
  29. /dev/hw_random 0440 root system
  30. /dev/ashmem* 0666 root root
  31. /dev/binder 0666 root root
  32. /dev/hwbinder 0666 root root
  33. /dev/vndbinder 0666 root root
  34. /dev/pmsg0 0222 root log
  35. # kms driver for drm based gpu
  36. /dev/dri/* 0666 root graphics
  37. # these should not be world writable
  38. /dev/uhid 0660 uhid uhid
  39. /dev/uinput 0660 uhid uhid
  40. /dev/rtc0 0640 system system
  41. /dev/tty0 0660 root system
  42. /dev/graphics/* 0660 root graphics
  43. /dev/input/* 0660 root input
  44. /dev/v4l-touch* 0660 root input
  45. /dev/snd/* 0660 system audio
  46. /dev/bus/usb/* 0660 root usb
  47. /dev/mtp_usb 0660 root mtp
  48. /dev/usb_accessory 0660 root usb
  49. /dev/tun 0660 system vpn
  50. # CDMA radio interface MUX
  51. /dev/ppp 0660 radio vpn
  52. # sysfs properties
  53. /sys/devices/platform/trusty.* trusty_version 0440 root log
  54. /sys/devices/virtual/input/input* enable 0660 root input
  55. /sys/devices/virtual/input/input* poll_delay 0660 root input
  56. /sys/devices/virtual/usb_composite/* enable 0664 root system
  57. /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
  58. /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system