From 4c3ab18f49d171fddf33a8a1db7dab970e96897a Mon Sep 17 00:00:00 2001
From: Jiyong Park <jiyong@google.com>
Date: Wed, 13 Dec 2017 11:54:59 +0900
Subject: [PATCH] /odm is another vendor partition that can be customied by
 ODMs

Since /odm is an extension of /vendor, libs in /odm should be treated
just like the ones in /vendor.

Bug: 67890517
Test: none as we don't yet have /odm partition.
Change-Id: I5232baef769c7fa8c7641b462cfa1d7537d3cfdf
---
 private/file_contexts      | 6 +++++-
 private/file_contexts_asan | 2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/private/file_contexts b/private/file_contexts
index 3c6642aeb..ad6a9222d 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -315,7 +315,11 @@
 #############################
 # OEM and ODM files
 #
-/odm(/.*)?              u:object_r:vendor_file:s0
+/odm(/.*)?                                    u:object_r:vendor_file:s0
+/odm/lib(64)?/egl(/.*)?                       u:object_r:same_process_hal_file:s0
+/odm/lib(64)?/hw                              u:object_r:vendor_hal_file:s0
+/odm/lib(64)?/vndk-sp(/.*)?                   u:object_r:vndk_sp_file:s0
+
 /oem(/.*)?              u:object_r:oemfs:s0
 
 
diff --git a/private/file_contexts_asan b/private/file_contexts_asan
index 0401ffe41..17ee9d795 100644
--- a/private/file_contexts_asan
+++ b/private/file_contexts_asan
@@ -2,6 +2,8 @@
 /data/asan/system/lib64(/.*)?              u:object_r:system_file:s0
 /data/asan/vendor/lib(/.*)?                u:object_r:system_file:s0
 /data/asan/vendor/lib64(/.*)?              u:object_r:system_file:s0
+/data/asan/odm/lib(/.*)?                   u:object_r:system_file:s0
+/data/asan/odm/lib64(/.*)?                 u:object_r:system_file:s0
 /system/bin/asan_extract       u:object_r:asan_extract_exec:s0
 /system/bin/asanwrapper        u:object_r:asanwrapper_exec:s0
 /system/bin/asan/app_process   u:object_r:zygote_exec:s0
-- 
GitLab