From 26f6c80d00a96e7b0139bd8d85d565f4fd2b72c3 Mon Sep 17 00:00:00 2001 From: Chang-An Chen Date: Sat, 18 Jan 2020 10:06:08 +0800 Subject: [PATCH] [ALPS04056547] partition: remove unused policy Remove policy for sysenv_daemon, which is removed in Android P MTK-Commit-Id: adbf02af5663fc468c7b892a33b4a03ec53a948f Change-Id: I1653bef4c9b0f9a2b7022f8895b89de0c3373148 CR-Id: ALPS04056547 Feature: [Module]Partition --- non_plat/file_contexts | 3 +-- non_plat/sysenv_daemon.te | 48 --------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 non_plat/sysenv_daemon.te diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 2ab901f..934a1b0 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -562,7 +562,6 @@ /(system\/vendor|vendor)/bin/mnld u:object_r:mnld_exec:s0 /system/bin/connsyslogger u:object_r:connsyslogger_exec:s0 -/(system\/vendor|vendor)/bin/sysenv_daemon u:object_r:sysenv_daemon_exec:s0 /(system\/vendor|vendor)/bin/biosensord_nvram u:object_r:biosensord_nvram_exec:s0 /(system\/vendor|vendor)/bin/hw/android\.hardware\.bluetooth@1\.0-service-mediatek u:object_r:mtk_hal_bluetooth_exec:s0 /(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.gnss@1\.1-service u:object_r:mtk_hal_gnss_exec:s0 @@ -664,4 +663,4 @@ # Date: 2018/07/06 # Purpose for same-process HAL files and their dependencies: libGLES_mali.so need libm4u.so on mali GPU. -/vendor/lib(64)?/libm4u\.so u:object_r:same_process_hal_file:s0 \ No newline at end of file +/vendor/lib(64)?/libm4u\.so u:object_r:same_process_hal_file:s0 diff --git a/non_plat/sysenv_daemon.te b/non_plat/sysenv_daemon.te deleted file mode 100644 index 73effbb..0000000 --- a/non_plat/sysenv_daemon.te +++ /dev/null @@ -1,48 +0,0 @@ -# ============================================== -# Policy File of /vendor/bin/sysenv_daemon Executable File - - -# ============================================== -# Type Declaration -# ============================================== - -type sysenv_daemon_exec , exec_type, file_type, vendor_file_type; -type sysenv_daemon ,domain; - -# ============================================== -# Android Policy Rule -# ============================================== - -# ============================================== -# NSA Policy Rule -# ============================================== - -# ============================================== -# MTK Policy Rule -# ============================================== -init_daemon_domain(sysenv_daemon) - -# Date : WK16.24 -# Operation : Create -# Purpose : move sysenv to userspace. -allow sysenv_daemon block_device:dir search; -allow sysenv_daemon para_block_device:blk_file rw_file_perms; -allow sysenv_daemon proc_lk_env:file rw_file_perms; -allow sysenv_daemon self:netlink_socket { read bind create }; - -# Date : WK17.29 -# Operation : Migration -# Purpose : for device bring up, not to block early SQC -allow sysenv_daemon sysfs:file { open read }; - -# Date : WK17.43 -# Operation : Migration -# Purpose : to access mtd device -allow sysenv_daemon mtd_device:blk_file { open read write }; - -# Date: WK18.02 -# Operation: Create -# Purpose : get device path by read fstab in read/write lk_env -allow sysenv_daemon sysfs:dir { read open }; -allow sysenv_daemon sysfs:file getattr; -