summaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2020-03-12 05:26:07 +0000
committerJohn Stultz <john.stultz@linaro.org>2020-03-16 22:59:46 +0000
commit650d7b54409a4ef627428f06bf41d2b0d09961b4 (patch)
tree19857a52bb11de645de8a45d7458d78369d0dab5 /sepolicy
parentbd4744f89b5d70dea0db526278b7d3ac393fd098 (diff)
db845c: Make userdata formattable
If one runs "fastboot erase userdata", and then does not flash a userdata image to the partition, the system will fail to boot as /data/ will not mount, and the apex and dalvik cache directories won't be present or writable. This tries to address this by adding the formattable flag to the fstab and add the partition to the sepolicy so mkfs can access it. NOTE: I did have to use the full by-name path in the fstab, which is less flexible then the LABEL= method, but if the partition isn't formatted there isn't neceessarily a partition label to find. Big thanks to AmitP for suggesting this approach Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: Ia678d0d1d5e1eb35462f8fcfee478969c614b0d4
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file_contexts2
1 files changed, 2 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 81edb8c..f1d323c 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -11,6 +11,8 @@
/sys/devices/platform/soc@0/ae00000.mdss u:object_r:sysfs_gpu:s0
/sys/devices/platform/soc@0/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:rtc@6000/rtc u:object_r:sysfs_rtc:s0
+/dev/block/platform/soc@0/1d84000\.ufshc/by-name/userdata u:object_r:userdata_block_device:s0
+
/vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software u:object_r:hal_gatekeeper_default_exec:s0
/vendor/lib(64)?/dri/.* u:object_r:same_process_hal_file:s0