From 02365e1543b989994d2681d0cc3fa146311dd506 Mon Sep 17 00:00:00 2001 From: mtk14318 Date: Sat, 18 Jan 2020 09:43:36 +0800 Subject: [PATCH] [ALPS03869840] Modify for SELinux violation [Detail] Because p has new SELinux policy, we need to fix the violation part. [Solution] Mark the violation part. MTK-Commit-Id: 9935b37d96538a2696ac34e0ef8e0f4c480d3167 Change-Id: Ia0fac8c2b94d2acfc29dec20dd29dca85f9f9cf0 CR-Id: ALPS03869840 Feature: [Module]SurfaceFlinger/HWComposer --- non_plat/file.te | 2 +- non_plat/file_contexts | 2 +- non_plat/surfaceflinger.te | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/non_plat/file.te b/non_plat/file.te index 91e6639..266f64a 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -118,7 +118,7 @@ type aee_dumpsys_data_file, file_type, data_file_type, core_data_file_type; type aee_dumpsys_vendor_file, file_type, data_file_type; # SF rtt dump -type sf_rtt_file, file_type, data_file_type; +type sf_rtt_file, file_type, data_file_type, core_data_file_type; #for 3Gdongle type rild-dongle_socket, file_type; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index f54a926..df168fa 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -25,7 +25,7 @@ #/data/mnl_flp(/.*)? u:object_r:mnld_data_file:s0 #/data/mnl_gfc(/.*)? u:object_r:mnld_data_file:s0 #/data/misc/gps(/.*)? u:object_r:gps_data_file:s0 -#/data/anr/SF_RTT(/.*)? u:object_r:sf_rtt_file:s0 +/data/anr/SF_RTT(/.*)? u:object_r:sf_rtt_file:s0 #/data/ccci_cfg(/.*)? u:object_r:ccci_cfg_file:s0 #/data/flashless(/.*)? u:object_r:c2k_file:s0 /data/core(/.*)? u:object_r:aee_core_data_file:s0 diff --git a/non_plat/surfaceflinger.te b/non_plat/surfaceflinger.te index 4b82c76..4138ac7 100644 --- a/non_plat/surfaceflinger.te +++ b/non_plat/surfaceflinger.te @@ -20,7 +20,7 @@ allow surfaceflinger gpu_device:dir search; # Date : WK17.12 # Purpose: Fix bootup fail -#allow surfaceflinger proc:file r_file_perms; +allow surfaceflinger proc_bootprof:file r_file_perms; #============= surfaceflinger ============== allow surfaceflinger debugfs_ion:dir search;