From b0b25241c6327caa0ed9c9562368970a2b85b04d Mon Sep 17 00:00:00 2001 From: matteo0026 Date: Fri, 15 May 2020 22:50:03 +0200 Subject: [PATCH] msm8226-common: Transition to consumerir HIDL hal --- sepolicy/common/file_contexts | 1 + sepolicy/common/hal_ir_default.te | 3 +-- sepolicy/common/system_server.te | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index bda25c5..515e4ba 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -24,6 +24,7 @@ /system/vendor/firmware/libpn547_fw.so u:object_r:nfc_fw_file:s0 # executeables +/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.samsung u:object_r:hal_ir_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service.samsung8226 u:object_r:hal_sensors_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_sysfs_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0 diff --git a/sepolicy/common/hal_ir_default.te b/sepolicy/common/hal_ir_default.te index b8f9537..19af1cb 100644 --- a/sepolicy/common/hal_ir_default.te +++ b/sepolicy/common/hal_ir_default.te @@ -1,3 +1,2 @@ allow hal_ir_default sysfs_sec_ir:dir search; -allow hal_ir_default sysfs_sec_ir:file { read write }; -allow hal_ir_default sysfs_sec_ir:file open; +allow hal_ir_default sysfs_sec_ir:file w_file_perms; \ No newline at end of file diff --git a/sepolicy/common/system_server.te b/sepolicy/common/system_server.te index 23f3302..2ec9489 100644 --- a/sepolicy/common/system_server.te +++ b/sepolicy/common/system_server.te @@ -10,7 +10,6 @@ allow system_server { }:file r_file_perms; allow system_server { - sysfs_sec_ir sysfs_sec_led sysfs_sec_touchkey }:file w_file_perms;