From 6cd9bd078a49feb1c2c4268f91e4cd23a4fc6bf4 Mon Sep 17 00:00:00 2001 From: Tri Vo <trong@google.com> Date: Mon, 24 Sep 2018 16:12:23 -0700 Subject: [PATCH] Label /system/bin/linker* symlinks as system_file. Fixes: avc: denied { read } for comm="init" name="linker_asan64" dev="sda22" ino=1833 scontext=u:r:init:s0 tcontext=u:object_r:system_linker_exec:s0 tclass=lnk_file permissive=0 Bug: 116486312 Test: adb unroot && adb shell ls -l /system/bin/linker_asan Change-Id: I754daaf3576e83d516cc9189b8be04dcc41bbc5c --- private/file_contexts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/file_contexts b/private/file_contexts index e23e1637f..37af87869 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -251,7 +251,7 @@ /system/bin/dnsmasq u:object_r:dnsmasq_exec:s0 /system/bin/healthd u:object_r:healthd_exec:s0 /system/bin/clatd u:object_r:clatd_exec:s0 -/system/bin/linker(_asan)?(64)? u:object_r:system_linker_exec:s0 +/system/bin/linker(64)? u:object_r:system_linker_exec:s0 /system/bin/llkd u:object_r:llkd_exec:s0 /system/bin/lmkd u:object_r:lmkd_exec:s0 /system/bin/usbd u:object_r:usbd_exec:s0 -- GitLab