summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/audioserver.te3
-rw-r--r--common/recovery.te3
-rw-r--r--msm8909/file_contexts1
-rw-r--r--msm8916/file_contexts1
-rw-r--r--msm8992/file_contexts2
-rw-r--r--msm8994/file_contexts2
6 files changed, 9 insertions, 3 deletions
diff --git a/common/audioserver.te b/common/audioserver.te
index 48df422e..df2d09ce 100644
--- a/common/audioserver.te
+++ b/common/audioserver.te
@@ -86,3 +86,6 @@ use_per_mgr(audioserver);
allow audioserver activity_service:service_manager find;
set_prop(audioserver, dolby_prop)
# DOLBY_END
+
+# for thermal sock files
+unix_socket_connect(audioserver, thermal, thermal-engine)
diff --git a/common/recovery.te b/common/recovery.te
index c83bc974..210c4050 100644
--- a/common/recovery.te
+++ b/common/recovery.te
@@ -3,7 +3,8 @@ recovery_only(`
allow recovery sdcard_type:dir r_dir_perms;
allow recovery sdcard_type:file r_file_perms;
allow recovery vfat:dir r_dir_perms;
- allow recovery vfat:file r_file_perms;
+ allow recovery vfat:file create_file_perms;
+ allow recovery vfat:file rw_file_perms;
allow recovery system_data_file:file r_file_perms;
allow recovery system_data_file:dir r_dir_perms;
allow recovery RIDL_data_file:file r_file_perms;
diff --git a/msm8909/file_contexts b/msm8909/file_contexts
index 424d82b1..642cfb5a 100644
--- a/msm8909/file_contexts
+++ b/msm8909/file_contexts
@@ -35,6 +35,7 @@
/dev/block/platform/soc.0/7824900.sdhci/by-name/misc u:object_r:misc_block_device:s0
/dev/block/platform/soc.0/7824900.sdhci/by-name/userdata u:object_r:userdata_block_device:s0
/dev/block/platform/soc.0/7824900.sdhci/by-name/logdump u:object_r:logdump_partition:s0
+/dev/block/platform/soc.0/7824900.sdhci/by-name/config u:object_r:frp_block_device:s0
/dev/block/mmcblk0 u:object_r:root_block_device:s0
/dev/block/mmcblk0rpmb u:object_r:rpmb_device:s0
diff --git a/msm8916/file_contexts b/msm8916/file_contexts
index 31788b3b..c59fe8fb 100644
--- a/msm8916/file_contexts
+++ b/msm8916/file_contexts
@@ -36,6 +36,7 @@
/dev/block/platform/soc.0/7824900.sdhci/by-name/misc u:object_r:misc_block_device:s0
/dev/block/platform/soc.0/7824900.sdhci/by-name/userdata u:object_r:userdata_block_device:s0
/dev/block/platform/soc.0/7824900.sdhci/by-name/logdump u:object_r:logdump_partition:s0
+/dev/block/platform/soc.0/7824900.sdhci/by-name/config u:object_r:frp_block_device:s0
/dev/block/mmcblk0 u:object_r:root_block_device:s0
/dev/block/mmcblk0rpmb u:object_r:rpmb_device:s0
/dev/block/platform/soc.0/7824900.sdhci/by-name/boot u:object_r:boot_block_device:s0
diff --git a/msm8992/file_contexts b/msm8992/file_contexts
index a765bc11..f4957ddb 100644
--- a/msm8992/file_contexts
+++ b/msm8992/file_contexts
@@ -37,7 +37,7 @@
/dev/block/platform/soc.0/f9824900.sdhci/by-name/boot u:object_r:boot_block_device:s0
/dev/block/platform/soc.0/f9824900.sdhci/by-name/recovery u:object_r:recovery_block_device:s0
/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache u:object_r:cache_block_device:s0
-/dev/block/platform/soc.0/f9824900.sdhci/by-name/frp u:object_r:frp_block_device:s0
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/config u:object_r:frp_block_device:s0
/dev/block/platform/soc.0/f9824900.sdhci/by-name/logdump u:object_r:logdump_partition:s0
/dev/block/mmcblk0rpmb u:object_r:rpmb_device:s0
/dev/block/mmcblk0 u:object_r:root_block_device:s0
diff --git a/msm8994/file_contexts b/msm8994/file_contexts
index 5697413a..4c073044 100644
--- a/msm8994/file_contexts
+++ b/msm8994/file_contexts
@@ -57,5 +57,5 @@
/dev/block/platform/soc.0/f9824900.sdhci/by-name/boot u:object_r:boot_block_device:s0
/dev/block/platform/soc.0/f9824900.sdhci/by-name/recovery u:object_r:recovery_block_device:s0
/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache u:object_r:cache_block_device:s0
-/dev/block/platform/soc.0/f9824900.sdhci/by-name/frp u:object_r:frp_block_device:s0
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/config u:object_r:frp_block_device:s0
/dev/block/platform/soc.0/f9824900.sdhci/by-name/logdump u:object_r:logdump_partition:s0