From 97e4802166dafbaf7c3f40ab14fe61ade16429f1 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Sun, 3 Mar 2019 00:59:38 +0200 Subject: [PATCH] common: sepolicy: legacy: Label persist partition for all SoCs Change-Id: I8db3acb9a1b958ec59c7f14c6ee16ea466548cc7 Signed-off-by: Jprimero15 --- sepolicy/legacy/vendor/msm8937/file_contexts | 3 +-- sepolicy/legacy/vendor/msm8953/file_contexts | 1 + sepolicy/legacy/vendor/msm8998/file_contexts | 3 ++- sepolicy/legacy/vendor/sdm660/file_contexts | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sepolicy/legacy/vendor/msm8937/file_contexts b/sepolicy/legacy/vendor/msm8937/file_contexts index 5fe87da3..1f76a3b6 100644 --- a/sepolicy/legacy/vendor/msm8937/file_contexts +++ b/sepolicy/legacy/vendor/msm8937/file_contexts @@ -49,8 +49,7 @@ /dev/block/platform/soc/7824900.sdhci/by-name/cache u:object_r:cache_block_device:s0 /dev/block/platform/soc/7824900.sdhci/by-name/logdump u:object_r:logdump_partition:s0 /dev/block/platform/soc/7824900.sdhci/by-name/super u:object_r:super_block_device:s0 - - +/dev/block/platform/soc/7824900.sdhci/by-name/persist u:object_r:persist_block_device:s0 #rawdump partition /dev/block/platform/soc/7824900.sdhci/by-name/rawdump u:object_r:rawdump_block_device:s0 diff --git a/sepolicy/legacy/vendor/msm8953/file_contexts b/sepolicy/legacy/vendor/msm8953/file_contexts index cc677519..20255289 100644 --- a/sepolicy/legacy/vendor/msm8953/file_contexts +++ b/sepolicy/legacy/vendor/msm8953/file_contexts @@ -49,6 +49,7 @@ /dev/block/platform/soc/7824900.sdhci/by-name/recovery u:object_r:recovery_block_device:s0 /dev/block/platform/soc/7824900.sdhci/by-name/cache u:object_r:cache_block_device:s0 /dev/block/platform/soc/7824900.sdhci/by-name/super u:object_r:super_block_device:s0 +/dev/block/platform/soc/7824900.sdhci/by-name/persist u:object_r:persist_block_device:s0 #rawdump partition /dev/block/platform/soc/7824900.sdhci/by-name/rawdump u:object_r:rawdump_block_device:s0 diff --git a/sepolicy/legacy/vendor/msm8998/file_contexts b/sepolicy/legacy/vendor/msm8998/file_contexts index 74193091..82ba3fef 100644 --- a/sepolicy/legacy/vendor/msm8998/file_contexts +++ b/sepolicy/legacy/vendor/msm8998/file_contexts @@ -49,7 +49,7 @@ /dev/block/platform/soc/c0c4000.sdhci/by-name/mdm1m9kefsc u:object_r:efs_boot_dev:s0 /dev/block/platform/soc/c0c4000.sdhci/by-name/logdump u:object_r:logdump_partition:s0 /dev/block/platform/soc/c0c4000.sdhci/by-name/super u:object_r:super_block_device:s0 - +/dev/block/platform/soc/c0c4000.sdhci/by-name/persist u:object_r:persist_block_device:s0 #for UFS blocks /dev/block/platform/soc/1da4000.ufshc/by-name/fsc u:object_r:modem_efs_partition_device:s0 @@ -74,6 +74,7 @@ /dev/block/platform/soc/1da4000.ufshc/by-name/mdm1m9kefsc u:object_r:efs_boot_dev:s0 /dev/block/platform/soc/1da4000.ufshc/by-name/logdump u:object_r:logdump_partition:s0 /dev/block/platform/soc/1da4000.ufshc/by-name/super u:object_r:super_block_device:s0 +/dev/block/platform/soc/1da4000.ufshc/by-name/persist u:object_r:persist_block_device:s0 #Primary storage device nodes /dev/block/mmcblk0rpmb u:object_r:rpmb_device:s0 diff --git a/sepolicy/legacy/vendor/sdm660/file_contexts b/sepolicy/legacy/vendor/sdm660/file_contexts index 1f59c5aa..18d01a46 100644 --- a/sepolicy/legacy/vendor/sdm660/file_contexts +++ b/sepolicy/legacy/vendor/sdm660/file_contexts @@ -49,7 +49,7 @@ /dev/block/platform/soc/c0c4000.sdhci/by-name/mdm1m9kefsc u:object_r:efs_boot_dev:s0 /dev/block/platform/soc/c0c4000.sdhci/by-name/logdump u:object_r:logdump_partition:s0 /dev/block/platform/soc/c0c4000.sdhci/by-name/super u:object_r:super_block_device:s0 - +/dev/block/platform/soc/c0c4000.sdhci/by-name/persist u:object_r:persist_block_device:s0 #for UFS blocks /dev/block/platform/soc/1da4000.ufshc/by-name/fsc u:object_r:modem_efs_partition_device:s0 @@ -74,6 +74,7 @@ /dev/block/platform/soc/1da4000.ufshc/by-name/mdm1m9kefsc u:object_r:efs_boot_dev:s0 /dev/block/platform/soc/1da4000.ufshc/by-name/logdump u:object_r:logdump_partition:s0 /dev/block/platform/soc/1da4000.ufshc/by-name/super u:object_r:super_block_device:s0 +/dev/block/platform/soc/1da4000.ufshc/by-name/persist u:object_r:persist_block_device:s0 #Primary storage device nodes /dev/mmcblk0rpmb u:object_r:rpmb_device:s0