diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index a654f32..0f1ba67 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -10,6 +10,9 @@ # Camera /mnt/vendor/persist/camera(/.*)? u:object_r:camera_persist_file:s0 +# IR +/dev/ir_spi u:object_r:ir_spi_device:s0 + # Power /sys/devices/virtual/touch/tp_dev/double_tap u:object_r:vendor_sysfs_double_tap:s0 diff --git a/sepolicy/vendor/hal_ir_default.te b/sepolicy/vendor/hal_ir_default.te new file mode 100644 index 0000000..ce503ef --- /dev/null +++ b/sepolicy/vendor/hal_ir_default.te @@ -0,0 +1,3 @@ +type ir_spi_device, dev_type; + +allow hal_ir_default ir_spi_device:chr_file rw_file_perms;