aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sepolicy/file_contexts6
-rw-r--r--sepolicy/fsck.te4
2 files changed, 5 insertions, 5 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 1e8efa3..87c04a0 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -22,9 +22,9 @@
/vendor/bin/hw/android\.hardware\.light@2\.0-service.zuk_8996 u:object_r:hal_light_default_exec:s0
# persist
-/dev/block/mmcblk0p40 u:object_r:persist_block_device:s0
-/persist/rfs(/.*)? u:object_r:rfs_file:s0
-/persist/sensors/gyro_sensitity_cal u:object_r:sensors_persist_file:s0
+/dev/block/platform/soc/(624000\.ufshc|7464900\.sdhci)/by-name/persist u:object_r:persist_block_device:s0
+/persist/rfs(/.*)? u:object_r:rfs_file:s0
+/persist/sensors/gyro_sensitity_cal u:object_r:sensors_persist_file:s0
# readmac
/vendor/bin/readmac u:object_r:readmac_exec:s0
diff --git a/sepolicy/fsck.te b/sepolicy/fsck.te
index e1e0bb9..9c64f10 100644
--- a/sepolicy/fsck.te
+++ b/sepolicy/fsck.te
@@ -1,2 +1,2 @@
-allow fsck rootfs:lnk_file getattr;
-allow fsck persist_block_device:blk_file { read open write ioctl };
+allow fsck persist_block_device:blk_file rw_file_perms;
+