summaryrefslogtreecommitdiff
path: root/rootdir/init.rc
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r--rootdir/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 1b367c79f..ee216faf6 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -226,6 +226,10 @@ on init
# enable armv8_deprecated instruction hooks
write /proc/sys/abi/swp 1
+ # Linux's execveat() syscall may construct paths containing /dev/fd
+ # expecting it to point to /proc/self/fd
+ symlink /proc/self/fd /dev/fd
+
# Healthd can trigger a full boot from charger mode by signaling this
# property when the power button is held.
on property:sys.boot_from_charger_mode=1
@@ -427,6 +431,8 @@ on post-fs-data
symlink /data/data /data/user/0
+ init_user0
+
# Reload policy from /data/security if present.
setprop selinux.reload_policy 1