From 2a641ef6fff976ebf06ef7ca37afeeeb0a9e134a Mon Sep 17 00:00:00 2001 From: Arian Date: Tue, 28 Mar 2023 18:29:10 +0200 Subject: [PATCH] sm8350-common: sepolicy: Label camera libraries as same process hal files Change-Id: If04a525677e9e137dacb4fd759eb6d1d5d2776ba --- sepolicy/vendor/file_contexts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index ee0c8d5..9057df3 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -10,6 +10,18 @@ # Camera /mnt/vendor/persist/camera(/.*)? u:object_r:camera_persist_file:s0 +/vendor/lib(64)?/libc\+\+_shared\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/libmialgo_ai_vision\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/libmialgo_utils\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/libsnpe_dsp_domains_v2\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/libsnpe_dsp_domains_v3\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/libsnpe_htp\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/rfsa/adsp/libsnpe_dsp_v65_domains_v2_skel\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/rfsa/adsp/libsnpe_dsp_v66_domains_v2_skel\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/rfsa/adsp/libsnpe_dsp_v68_domains_v3_skel\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/rfsa/adsp/libsnpe_htp_v65_skel\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/rfsa/adsp/libsnpe_htp_v66_skel\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/rfsa/adsp/libsnpe_htp_v68_skel\.so u:object_r:same_process_hal_file:s0 # IR /dev/ir_spi u:object_r:ir_spi_device:s0