android_device_xiaomi_sdm66.../rootdir/etc
Felix ac571ee966
sdm660-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
2020-03-10 09:39:45 +01:00
..
fstab.qcom sdm660-common: rootdir: Use auto for sdcard/usbotg 2020-02-27 17:01:34 +01:00
fstab_A.qcom sdm660-common: Add support for lavender (Redmi Note 7/7S) 2019-10-31 17:39:23 +00:00
fstab_AB.qcom sdm660: Switch to file based encryption for AB Targets 2020-01-31 16:47:27 +01:00
init.msm.usb.configfs.rc init.msm.usb.configfs.rc: Add support for USB PID 0x9020 2019-12-16 18:19:42 +01:00
init.qcom.rc sdm660-common: init: Adjust charger state CPUs 2020-02-27 17:01:42 +01:00
init.qcom.usb.rc sdm660-common: Update init.rc and init.sh from LA.UM.8.2.r1-04000 2019-09-27 17:13:45 +02:00
init.recovery.qcom.rc sdm660-common: Remove configfs triggers from recovery rc 2019-10-15 15:23:54 +02:00
init.target.rc sdm660-common: Force restorecon for /mnt/vendor/persist 2020-03-10 09:39:45 +01:00
ueventd.qcom.rc sdm660: ueventd.qcom.rc: Add permission to /dev/spu_hal_ssr 2020-02-27 17:01:37 +01:00