From a05beb80922d4b75d795f1299f89df3bcc9d772e Mon Sep 17 00:00:00 2001 From: BAProductions Date: Fri, 27 Dec 2019 11:45:24 -0500 Subject: [PATCH] msm2886-commom: fix more sepolicy denial Change-Id: Idb55755ced43fa48f12a9a7f1a7f7648f24cbd51 --- sepolicy/common/hal_ir_default.te | 3 +++ sepolicy/common/hal_power_default.te | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 sepolicy/common/hal_ir_default.te diff --git a/sepolicy/common/hal_ir_default.te b/sepolicy/common/hal_ir_default.te new file mode 100644 index 0000000..b8f9537 --- /dev/null +++ b/sepolicy/common/hal_ir_default.te @@ -0,0 +1,3 @@ +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; diff --git a/sepolicy/common/hal_power_default.te b/sepolicy/common/hal_power_default.te index 9a2ed20..0b5e2a8 100644 --- a/sepolicy/common/hal_power_default.te +++ b/sepolicy/common/hal_power_default.te @@ -1,2 +1,5 @@ allow hal_power_default sysfs_hal_pwr:file w_file_perms; allow hal_power_default sysfs:file { open write }; +allow hal_power_default sysfs_input:dir search; +allow hal_power_default sysfs_input:file write; +allow hal_power_default sysfs_input:file open;