device_xiaomi_sm6150-common/rootdir/etc
Felix a13246a7fc sm6150-common: Force restorecon for /mnt/vendor/persist
The restorecon_recursive directive in init is only applied if the
file_contexts file changed between builds, but not necessarily if any
file or folder inside /mnt/vendor/persist/ has changed.

The restorecon code checks whether an xattr named
"security.sehash" contains a string that matches the current
combined hashes of the SELinux context files and skips restoring labels
if there is a match, see
https://android.googlesource.com/platform/external/selinux/+/refs/tags/android-9.0.0_r35/libselinux/src/android/android_platform.c#1546

Force wiping that xattr so that restorecon always runs since it's not
very expensive (there are currently only about 50 files on /persist).

The restorecon is needed to fix issues such as wrong stock labels on
/mnt/vendor/persist/sensors/:
sensors_persist_file -> persist_sensors_file

Change-Id: Ic0cd848836ee550499d9236f56ed6e939e35f01e
2022-03-27 13:38:12 +02:00
..
fstab.zram sm6150-common: fstab: Correct zram parameter names 2021-08-06 19:27:29 +02:00
init.qcom.rc Revert "sm6150-common: rootdir: Override power HAL service and add input group" 2021-06-18 18:37:35 +02:00
init.qcom.usb.rc davinci: rootdir: Update init.qcom.usb.rc from 20.10.22 2020-12-30 02:02:58 +01:00
init.recovery.qcom.rc davinci: Add init.recovery.qcom.rc 2020-08-06 21:28:09 +02:00
init.target.rc sm6150-common: Force restorecon for /mnt/vendor/persist 2022-03-27 13:38:12 +02:00
ueventd.rc sm6150-common: rootdir: Add IR nodes to ueventd 2021-06-18 18:32:31 +02:00