From 357f5c4b1b53700473aad06ba90baa80b2f7969c Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Mon, 30 Nov 2020 14:47:03 +0900 Subject: [PATCH] Support linkerconfig in Runtime APEX Add additional sepolicy so linkerconfig in Runtime APEX can be executed from init. Bug: 165769179 Test: Cuttlefish boot succeeded Change-Id: Ic08157ce4c6a084db29f427cf9f5ad2cb12e50dd --- apex/com.android.runtime-file_contexts | 1 + private/file_contexts | 1 + 2 files changed, 2 insertions(+) diff --git a/apex/com.android.runtime-file_contexts b/apex/com.android.runtime-file_contexts index eed098156..d090d5004 100644 --- a/apex/com.android.runtime-file_contexts +++ b/apex/com.android.runtime-file_contexts @@ -4,4 +4,5 @@ (/.*)? u:object_r:system_file:s0 /bin/crash_dump(32|64) u:object_r:crash_dump_exec:s0 /bin/linker(64)? u:object_r:system_linker_exec:s0 +/bin/linkerconfig u:object_r:linkerconfig_exec:s0 /lib(64)?(/.*)? u:object_r:system_lib_file:s0 diff --git a/private/file_contexts b/private/file_contexts index d39b349a5..633a6ce46 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -283,6 +283,7 @@ /system/bin/linker(64)? u:object_r:system_linker_exec:s0 /system/bin/linkerconfig u:object_r:linkerconfig_exec:s0 /system/bin/bootstrap/linker(64)? u:object_r:system_linker_exec:s0 +/system/bin/bootstrap/linkerconfig u:object_r:linkerconfig_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