sm6150-common: sepolicy: Label Spi IR node

Change-Id: I550e823b11bbc8e37cffa164a2047d57d8a5499a
Signed-off-by: raghavt20 <raghavt20@aospa.co>
This commit is contained in:
raghavt20 2021-06-19 14:32:45 +05:30 committed by raghavt20
parent 5ef61b13a0
commit 4a67b5eb26
3 changed files with 6 additions and 0 deletions

1
sepolicy/vendor/device.te vendored Normal file
View File

@ -0,0 +1 @@
type lirc_device, dev_type;

View File

@ -29,6 +29,9 @@
/vendor/bin/hw/android\.hardware\.power-service\.xiaomi-libperfmgr u:object_r:hal_power_default_exec:s0 /vendor/bin/hw/android\.hardware\.power-service\.xiaomi-libperfmgr u:object_r:hal_power_default_exec:s0
/vendor/bin/hw/vendor\.lineage\.livedisplay@2\.1-service\.xiaomi_sm6150 u:object_r:hal_lineage_livedisplay_qti_exec:s0 /vendor/bin/hw/vendor\.lineage\.livedisplay@2\.1-service\.xiaomi_sm6150 u:object_r:hal_lineage_livedisplay_qti_exec:s0
# IR
/dev/spidev[0-9]\.1 u:object_r:lirc_device:s0
# Remosaic # Remosaic
/vendor/bin/remosaic_daemon u:object_r:remosaic_daemon_exec:s0 /vendor/bin/remosaic_daemon u:object_r:remosaic_daemon_exec:s0

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

@ -0,0 +1,2 @@
allow hal_ir_default lirc_device:chr_file rw_file_perms;
allow hal_ir_default lirc_device:file rw_file_perms;