From 0f6b14dc9582edba67233cc8b716476d7a8c7f12 Mon Sep 17 00:00:00 2001 From: jimsun Date: Wed, 8 Mar 2023 17:17:01 +0800 Subject: [PATCH] rild: allow rild to ptrace 06-20 18:47:41.940000 8708 8708 I auditd : type=1400 audit(0.0:7): avc: denied { ptrace } for comm="libmemunreachab" scontext=u:r:rild:s0 tcontext=u:r:rild:s0 tclass=process permissive=0 06-20 18:47:41.940000 8708 8708 W libmemunreachab: type=1400 audit(0.0:7): avc: denied { ptrace } for scontext=u:r:rild:s0 tcontext=u:r:rild:s0 tclass=process permissive=0 Bug: 263757077 Test: manual Change-Id: I4720650488eca100372d148313e04d6d8950ead5 --- whitechapel_pro/rild.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/whitechapel_pro/rild.te b/whitechapel_pro/rild.te index 559fa674..484dda08 100644 --- a/whitechapel_pro/rild.te +++ b/whitechapel_pro/rild.te @@ -37,3 +37,8 @@ add_hwservice(rild, hal_exynos_rild_hwservice) allow rild modem_img_file:dir r_dir_perms; allow rild modem_img_file:file r_file_perms; allow rild modem_img_file:lnk_file r_file_perms; + +# Allow rild to ptrace for memory leak detection +userdebug_or_eng(` +allow rild self:process ptrace; +')