g12: init-files: Do not symlink sdcard legacy path
authorDemon Singur <demonsingur@gmail.com>
Fri, 21 Sep 2018 11:11:36 +0000 (11:11 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 27 Jul 2021 21:29:18 +0000 (17:29 -0400)
* Solves the following denial:
  `denied  { write } for  pid=548 comm="init" name="storage" dev="rootfs" ino=15996 scontext=u:r:vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0`

Change-Id: If246f497bd8384f0fee81469d8d29dcb528d4d4e

init-files/init.amlogic.rc

index 97681666bbe008fa6ff83fb4ccc3f7949baa663c..da1b505a4718952ea9a992db52b9131d9abc5c82 100644 (file)
@@ -5,8 +5,6 @@ import /vendor/etc/init/hw/init.amlogic.media.rc
 import /vendor/etc/init/hw/init.amlogic.wifi_buildin.rc
 
 on init
-    # Support legacy paths
-    symlink /sdcard /mnt/sdcard
     # 30 means reserve 3% memory using for high water mark, 1GB DDR x 3% = 30MB
     write /proc/sys/vm/watermark_scale_factor 30
     # 12288 KB