[ALPS04314391] SYS_DEBUG_MTKCAM via aee_aedv

Allow camerahalserver to dump debug info to SYS_DEBUG_MTKCAM via aee_aedv.

avc: denied { write } for path="/data/vendor/mtklog/aee_exp/temp/db.9oRG8O/SYS_DEBUG_MTKCAM"
dev="dm-2" ino=1458278 scontext=u:r:mtk_hal_camera:s0
tcontext=u:object_r:aee_exp_vendor_file:s0 tclass=file permissive=0

MTK-Commit-Id: 6b096cffb7c389e160335c9dfa241b54fd9da7c8

Change-Id: Ic4075ad89fcf32f95a0b0c1c3279f134c1f903ec
CR-Id: ALPS04314391
Feature: [Android Default] Camera Application Basic Functions
(cherry picked from commit 90e1c9c2e1668be7c4c25d0d0a7eda65ad286539)
(cherry picked from commit dbc75e9efbd7cb40b3b1102abe934943e8f7f2b7)
This commit is contained in:
Jonas Lai 2020-01-18 10:08:17 +08:00
parent 674a078700
commit 2102224bdc

View File

@ -173,6 +173,13 @@ allow mtk_hal_camera dumpstate:unix_stream_socket { read write };
allow mtk_hal_camera dumpstate:fd { use }; allow mtk_hal_camera dumpstate:fd { use };
allow mtk_hal_camera dumpstate:fifo_file write; allow mtk_hal_camera dumpstate:fifo_file write;
# Purpose: Allow camerahalserver to dump debug info to SYS_DEBUG_MTKCAM via aee_aedv.
# avc: denied { write } for path="/data/vendor/mtklog/aee_exp/temp/db.9oRG8O/SYS_DEBUG_MTKCAM"
# dev="dm-2" ino=1458278 scontext=u:r:mtk_hal_camera:s0 tcontext=u:object_r:aee_exp_vendor_file:s0
# tclass=file permissive=0
allow mtk_hal_camera aee_exp_vendor_file:dir { w_dir_perms };
allow mtk_hal_camera aee_exp_vendor_file:file { create_file_perms };
# ----------------------------------- # -----------------------------------
# Android O # Android O
# Purpose: Debugging # Purpose: Debugging