From 6149e5238f6379fc0e9982b09bcb31a08206e9f0 Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Fri, 17 Nov 2023 09:41:40 +0900 Subject: [PATCH] Correct path of android.hidl.memory@1.0-impl.so Current sepolicy expects the library located under /vendor/lib(64), but the actual location of the library is /vendor/lib(64)/hw, as it defines relative path 'hw'. This change corrects location of android.hidl.memory@1.0-impl.so, so it can be labeled with same_process_hal_file as expected. Bug: 311298012 Test: Failing test passed over ABTD Change-Id: Ib84dbde0742716d399f04ce8ec11a0c4f24be8b0 --- vendor/file_contexts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/file_contexts b/vendor/file_contexts index 28613c9f0..1c393f1b4 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -171,7 +171,7 @@ /(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.mapper@4\.0\.so u:object_r:same_process_hal_file:s0 /(vendor|system/vendor)/lib(64)?/android\.hardware\.renderscript@1\.0\.so u:object_r:same_process_hal_file:s0 /(vendor|system/vendor)/lib(64)?/android\.hidl\.memory\.token@1\.0\.so u:object_r:same_process_hal_file:s0 -/(vendor|system/vendor)/lib(64)?/android\.hidl\.memory@1\.0-impl\.so u:object_r:same_process_hal_file:s0 +/(vendor|system/vendor)/lib(64)?/hw/android\.hidl\.memory@1\.0-impl\.so u:object_r:same_process_hal_file:s0 /(vendor|system/vendor)/lib(64)?/android\.hidl\.memory@1\.0\.so u:object_r:same_process_hal_file:s0 /(vendor|system/vendor)/lib(64)?/android\.hidl\.safe_union@1\.0\.so u:object_r:same_process_hal_file:s0 /(vendor|system/vendor)/lib(64)?/libRSCpuRef\.so u:object_r:same_process_hal_file:s0