summaryrefslogtreecommitdiff
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2016-02-01 22:04:06 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-02-01 22:04:06 +0000
commitef605cb7495cec368f7be015f924479969dd8fc2 (patch)
tree24fbde75e9ad68947ee48e85a0399f29d2b50010 /rootdir/init.rc
parentd484e7cef56133e1957e63f7de3bb6e47602fa85 (diff)
parent54bf0718f4eb1b170f55bbd07207cd6ad2e7e0f5 (diff)
Merge "init.rc: add missing /dev/fd symlink"
am: 54bf0718f4 * commit '54bf0718f4eb1b170f55bbd07207cd6ad2e7e0f5': init.rc: add missing /dev/fd symlink
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r--rootdir/init.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 47f5dbe7f..ac3062292 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -214,6 +214,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