sm8350-common: sepolicy: allow ir hal to access spi ir device
This commit is contained in:
parent
7e0bc34668
commit
98bf8eaf71
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
@ -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
3
sepolicy/vendor/hal_ir_default.te
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
type ir_spi_device, dev_type;
|
||||||
|
|
||||||
|
allow hal_ir_default ir_spi_device:chr_file rw_file_perms;
|
Loading…
Reference in New Issue
Block a user