DO NOT MERGE Dontaudit init to create symlinks in tmpfs.
Address denial:
avc: denied { create } for comm="init" name="sdcard"
scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file
permissive=0
"This symlink was supposed to have been removed in the Gingerbread
time frame, but lives on."
https://android.googlesource.com/platform/system/core/+/d2f0a2c%5E!/
So ignore attempts to create it.
In Android R, this permission is fixed in core policy aosp/943799.
Bug: 132283983
Test: boot device, symlink present
Change-Id: I1eec78c7edea4c84d77635f16c43ee9871683caa
diff --git a/shared/sepolicy/vendor/init.te b/shared/sepolicy/vendor/init.te
index f6731f7..26f7110 100644
--- a/shared/sepolicy/vendor/init.te
+++ b/shared/sepolicy/vendor/init.te
@@ -11,3 +11,7 @@
# binfmt_misc arm for ndk translator
allow init binfmt_miscfs:file w_file_perms;
allow init proc:dir mounton;
+
+# /mnt/sdcard -> /storage/self/primary symlink is deprecated. Ignore attempts to
+# create it. This denial is fixed in core policy in Android R aosp/943799.
+dontaudit init tmpfs:lnk_file create;