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