device_xiaomi_sm6150-common/sepolicy/vendor
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
..
adsprpcd.te davinci: sepolicy: Add vendor prefix to avoid naming colision 2020-12-30 02:02:56 +01:00
file_contexts sm6150-common: sepolicy: Add vendor prefix to camera persist file type 2022-03-27 13:38:07 +02:00
file.te sm6150-common: sepolicy: Add sepolicy for kernel to access /data/per_boot/zram_swap 2021-12-29 09:58:35 +00:00
genfs_contexts sm6150-common: sepolicy: Label fastrpc adsprpc wakeup nodes 2021-07-14 20:59:14 +02:00
hal_audio_default.te davinci: sepolicy: Add vendor prefix to avoid naming colision 2020-12-30 02:02:56 +01:00
hal_bluetooth_default.te davinci: sepolicy: Allow bluetooth HAL to read the mac address 2020-10-10 21:43:31 +02:00
hal_camera_default.te sm6150-common: sepolicy: Add vendor prefix to camera persist file type 2022-03-27 13:38:07 +02:00
hal_fingerprint_default.te sm6150-common: sepolicy: Attach vendor_property_type to properties 2021-12-29 10:18:50 +00:00
hal_lineage_livedisplay_qti.te sm6150-common: livedisplay: Add anti flicker support 2021-06-18 18:32:31 +02:00
hal_nfc_default.te davinci: sepolicy: Add vendor prefix to avoid naming colision 2020-12-30 02:02:56 +01:00
hal_power_default.te sm6150-common: sepolicy: Attach vendor_property_type to properties 2021-12-29 10:18:50 +00:00
hal_sensors_default.te sm6150-common: sepolicy: Attach vendor_property_type to properties 2021-12-29 10:18:50 +00:00
hwservice_contexts sm6150-common: Transform davinci into common tree 2021-04-25 15:18:14 +02:00
init.te sm6150-common: sepolicy: Allow ioctl to zram_swap for performance 2021-12-29 09:59:07 +00:00
kernel.te sm6150-common: sepolicy: Add sepolicy for kernel to access /data/per_boot/zram_swap 2021-12-29 09:58:35 +00:00
mi_thermald.te sm6150-common: sepolicy: Attach vendor_property_type to properties 2021-12-29 10:18:50 +00:00
priv_app.te davinci: sepolicy: Silence harmless QCOM denials 2020-10-10 21:43:31 +02:00
property_contexts sm6150-common: sepolicy: Move xiaomi specific property labels to vendor 2021-12-29 10:19:42 +00:00
radio.te davinci: sepolicy: Allow radio to read vendor audio prop 2020-10-10 21:43:31 +02:00
remosaic_daemon.te davinci: sepolicy: Use add_service macro for remosaic_daemon 2020-11-28 18:12:02 +01:00
sensors.te davinci: sepolicy: Add vendor prefix to avoid naming colision 2020-12-30 02:02:56 +01:00
system_app.te sm6150-common: parts: Implement doze modes and auto brightness 2021-07-03 21:23:14 +02:00
tee.te davinci: sepolicy: Add fingerprint rules 2020-10-10 21:43:31 +02:00
toolbox.te sm6150-common: sepolicy: Modify sepolicy for toolbox to rm -rf /data/per_boot 2021-12-29 09:59:01 +00:00
touchfeature.te sm6150-common: Set permissions on /dev/xiaomi-touch 2021-07-13 22:13:56 +02:00
uncrypt.te davinci: sepolicy: Fix OTA auto-flashing with encrypted f2fs. 2020-10-10 21:43:31 +02:00
vendor_init.te sm6150-common: Force restorecon for /mnt/vendor/persist 2022-03-27 13:38:12 +02:00
vendor_qti_init_shell.te sm6150-common: rootdir: Enable PowerHAL hint processing 2021-06-21 23:43:39 +02:00
vendor_toolbox.te sm6150-common: Force restorecon for /mnt/vendor/persist 2022-03-27 13:38:12 +02:00
vndservice_contexts davinci: sepolicy: Add camera rules 2020-10-10 21:43:31 +02:00
wcnss_service.te davinci: sepolicy: Add vendor prefix to avoid naming colision 2020-12-30 02:02:56 +01:00