From 29ce7c7c256430c884f56f583de870bf549374e1 Mon Sep 17 00:00:00 2001 From: Freddy Hsin Date: Sat, 18 Jan 2020 10:21:07 +0800 Subject: [PATCH] [ALPS04763256] siu: move uncrypt sepolicy 1. rename uncrypte.te to uncrypt.te 2. move permission in bsp to basic MTK-Commit-Id: 13f7243b07dc87cf357da41a5920826c80b1dede Change-Id: I26363151ce8644a67eb9742d9c507a77abfff129 CR-Id: ALPS04763256 Feature: [Android Default] SIU (SD Image Update) --- non_plat/uncrypt.te | 14 ++++++++++++++ non_plat/uncrypte.te | 3 --- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100755 non_plat/uncrypt.te delete mode 100755 non_plat/uncrypte.te diff --git a/non_plat/uncrypt.te b/non_plat/uncrypt.te new file mode 100755 index 0000000..d62e1ff --- /dev/null +++ b/non_plat/uncrypt.te @@ -0,0 +1,14 @@ +#====================== uncrypt.te ====================== +# uncrypt for mtd +allow uncrypt mtd_device:chr_file { read write open ioctl }; +allow uncrypt mtd_device:dir search; + +allow uncrypt misc_device:chr_file ~rename; +allow uncrypt system_data_file:file { open read }; +allow uncrypt userdata_block_device:blk_file w_file_perms; +allow uncrypt para_block_device:blk_file { write open }; +allow uncrypt system_app_data_file:dir { getattr search }; +allow uncrypt system_app_data_file:file { read getattr }; +allow uncrypt media_rw_data_file:dir { getattr search }; +allow uncrypt media_rw_data_file:file { read getattr open }; +allow uncrypt ota_package_file:file w_file_perms; diff --git a/non_plat/uncrypte.te b/non_plat/uncrypte.te deleted file mode 100755 index d9e3df8..0000000 --- a/non_plat/uncrypte.te +++ /dev/null @@ -1,3 +0,0 @@ -#====================== uncrypt.te ====================== -allow uncrypt para_block_device:blk_file w_file_perms; -allow uncrypt ota_package_file:file w_file_perms; \ No newline at end of file