sm8350-common: sepolicy: allow ir hal to access spi ir device

This commit is contained in:
Cosmin Tanislav 2021-10-22 04:08:35 +03:00
parent 7e0bc34668
commit 98bf8eaf71
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@
# Camera # Camera
/mnt/vendor/persist/camera(/.*)? u:object_r:camera_persist_file:s0 /mnt/vendor/persist/camera(/.*)? u:object_r:camera_persist_file:s0
# IR
/dev/ir_spi u:object_r:ir_spi_device:s0
# Power # Power
/sys/devices/virtual/touch/tp_dev/double_tap u:object_r:vendor_sysfs_double_tap:s0 /sys/devices/virtual/touch/tp_dev/double_tap u:object_r:vendor_sysfs_double_tap:s0

3
sepolicy/vendor/hal_ir_default.te vendored Normal file
View File

@ -0,0 +1,3 @@
type ir_spi_device, dev_type;
allow hal_ir_default ir_spi_device:chr_file rw_file_perms;