exynos9610: Force restorecon for /data/vendor
[GitHub/LineageOS/android_device_motorola_exynos9610-common.git] / configs / init / init.exynos9610.rc
index f47211b8a0f6b4a0b30dfa949f12bd82402ebe7d..82b2241f865a749b12821f8a0bdd176936e56f93 100644 (file)
@@ -173,6 +173,10 @@ on post-fs
     setrlimit 8 67108864 67108864
 
 on post-fs-data
+   exec u:r:vendor_toolbox:s0 -- /vendor/bin/toybox_vendor find /data/vendor -type d \
+        -exec /vendor/bin/toybox_vendor setfattr -x security.sehash {} \;
+   restorecon_recursive /data/vendor
+
 # Exynos Data folder
     mkdir /data/vendor 0775 root system
     mkdir /data/vendor/log 0771 root system