From da660a365341c6eef14a77690de9a14f008737ea Mon Sep 17 00:00:00 2001 From: Sam-KY Lin Date: Sat, 18 Jan 2020 10:04:12 +0800 Subject: [PATCH] [ALPS03998186] Treble: Fix selinux issue for booting with GSI [Detail] SEPolicy rule that put in plat_private folder will be placed in system image. So, It will be overwrited after flashing GSI. [Solution] Move MTK rules to non_plat folder instead which will be placed in vendor image. MTK-Commit-Id: 91e5023b67f0ce18e5e364adce5da5413c71fc69 Change-Id: I372b059e44c4bbfd6d4a92a790846b2228213b88 CR-Id: ALPS03998186 Feature: Treble --- non_plat/file_contexts | 5 +++++ plat_private/file_contexts | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 6b3b8b1..d18efe2 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -649,3 +649,8 @@ # Purpose : mtk EM Audio headset detect /sys/bus/platform/drivers/Accdet_Driver/state u:object_r:sysfs_headset:s0 +# Date: 2018/07/02 +#Purpose : MTK Vibrator +/sys/devices/virtual/timed_output/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 +/sys/devices/platform/leds-mt65xx/leds(/.*)? u:object_r:sysfs_leds:s0 +/sys/devices/platform/odm/odm:vibrator@0/leds/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 diff --git a/plat_private/file_contexts b/plat_private/file_contexts index e94da98..5fd3e61 100644 --- a/plat_private/file_contexts +++ b/plat_private/file_contexts @@ -41,9 +41,6 @@ #MTK vibrator /sys/devices/platform/vibrator@0/leds/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 -/sys/devices/virtual/timed_output/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 -/sys/devices/platform/leds-mt65xx/leds(/.*)? u:object_r:sysfs_leds:s0 -/sys/devices/platform/odm/odm:vibrator@0/leds/vibrator(/.*)? u:object_r:sysfs_vibrator:s0 /sys/module/tpd_setting(/.*)? u:object_r:sysfs_tpd_setting:s0 /sys/block/mmcblk0rpmb/size u:object_r:access_sys_file:s0