From d917563900aa4861fe420a4b4883fde7acbc2dc7 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 29 May 2020 10:12:22 +0200 Subject: [PATCH] Add smcinvoke dev type. Should fix widevine on Redmi Note 9S --- sepolicy/file_contexts | 1 + sepolicy/qualcomm.te | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 37794c1..7cfb226 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -18,3 +18,4 @@ /efs u:object_r:efs_file:s0 +/dev/smcinvoke u:object_r:smcinvoke_device:s0 diff --git a/sepolicy/qualcomm.te b/sepolicy/qualcomm.te index fba8ed8..30a9a6c 100644 --- a/sepolicy/qualcomm.te +++ b/sepolicy/qualcomm.te @@ -24,3 +24,5 @@ allow ipacm hal_tetheroffload_hwservice:hwservice_manager { add }; type rpmb_device, file_type; allow tee rpmb_device:blk_file rw_file_perms; allowxperm tee rpmb_device:blk_file ioctl { 0xb300-0xbfff }; + +type smcinvoke_device, dev_type;