From 6513479fe84ecd4d4d50aeef5a8a19b39404ee9a Mon Sep 17 00:00:00 2001 From: Dinesh Yadav Date: Thu, 19 May 2022 08:30:02 +0000 Subject: [PATCH] Add SEPolicy for gxp_metrics_logger.so logging to stats service In order to access the gxp metrics library from the google camera app (product partition), we need to create an SELinux exception for the related shared library (in vendor) it uses. This CL adds the same_process_hal_file tag to allow this exception. Bug: 177236353 Test: App can load the .so and creates a VLOG message after this change. Before: No permission to access namespace. After: GCA able to access the gxp_metrics_logger.so Change-Id: I453b66b30eb51ebd22fda750d272cf35574301f6 Signed-off-by: Dinesh Yadav --- whitechapel_pro/file_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel_pro/file_contexts b/whitechapel_pro/file_contexts index 294a1b82..6df95855 100644 --- a/whitechapel_pro/file_contexts +++ b/whitechapel_pro/file_contexts @@ -59,6 +59,7 @@ /vendor/lib(64)?/vendor-pixelatoms-cpp\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libprotobuf-cpp-lite-3\.9\.1\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libgxp\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/gxp_metrics_logger\.so u:object_r:same_process_hal_file:s0 # Graphics /vendor/lib(64)?/hw/gralloc\.gs201\.so u:object_r:same_process_hal_file:s0