From 6e02427beb43aa539754522242d769519943847f Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 3 Sep 2018 13:04:43 +0200 Subject: [PATCH] sdm845-common: Fix lights HAL denials * OnePlus decided to label these sysfs_oem for some reason. Change-Id: I4f9012d1583d5d9068751f273b3aa1537c2ce540 --- sepolicy/private/file.te | 1 + sepolicy/private/hal_light_sdm845.te | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sepolicy/private/file.te b/sepolicy/private/file.te index 668f5a5..641f7a2 100644 --- a/sepolicy/private/file.te +++ b/sepolicy/private/file.te @@ -6,3 +6,4 @@ type op2_file, file_type; type persist_file, file_type; type proc_touchpanel, fs_type; type sysfs_fpc_proximity, sysfs_type, fs_type; +type sysfs_oem, sysfs_type, fs_type; diff --git a/sepolicy/private/hal_light_sdm845.te b/sepolicy/private/hal_light_sdm845.te index 93381ac..20e0d9c 100644 --- a/sepolicy/private/hal_light_sdm845.te +++ b/sepolicy/private/hal_light_sdm845.te @@ -4,4 +4,4 @@ hal_server_domain(hal_light_sdm845, hal_light) type hal_light_sdm845_exec, exec_type, file_type; init_daemon_domain(hal_light_sdm845) -allow hal_light_sdm845 sysfs_leds:file rw_file_perms; +allow hal_light_sdm845 sysfs_oem:file rw_file_perms;