From 40a96e4ba07d1b1b79115eaa2727000f72707381 Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Mon, 1 Feb 2016 09:59:44 -0800 Subject: [PATCH] init.rc: add missing /dev/fd symlink The Linux kernel implicitly expects /dev/fd to symlink to /proc/self/fd. This change fixes the exec/execveat.c kernel selftest. Change-Id: Ia08d50023336fdbfc098527299c326d9d59039a9 Signed-off-by: Greg Hackmann --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index e400c85c7..f617d7227 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -201,6 +201,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