Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40a96e4b authored by Greg Hackmann's avatar Greg Hackmann
Browse files

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: default avatarGreg Hackmann <ghackmann@google.com>
parent 8dfe21ea
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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