From 64b63dfc5c4b935050cdd23d64936286e07dcf8f Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 2 Aug 2018 15:01:10 +0200 Subject: [PATCH] Fix tether for some Qualcomm devices [selinux part] Fixes https://github.com/phhusson/treble_experimentations/issues/131 --- sepolicy/qualcomm.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sepolicy/qualcomm.te b/sepolicy/qualcomm.te index edde901..9baaa56 100644 --- a/sepolicy/qualcomm.te +++ b/sepolicy/qualcomm.te @@ -9,3 +9,8 @@ allow system_app vnd_qcril_audio_hwservice:hwservice_manager { find }; #Pixel 2 type vnd_qcrilhook_hwservice, hwservice_manager_type; allow system_app vnd_qcrilhook_hwservice:hwservice_manager { find }; + +# cf https://github.com/phhusson/treble_experimentations/issues/131 +# SELinux : avc: denied { add } for interface=android.hardware.tetheroffload.control::IOffloadControl pid=15220 scontext=u:r:ipacm:s0 tcontext=u:object_r:hal_tetheroffload_hwservice:s0 tclass=hwservice_manager permissive=0 +type ipacm, hwservice_manager_type; +allow ipacm hal_tetheroffload_hwservice:hwservice_manager { add };