OSDN Git Service

install copy of shell in vendor partition
authorSandeep Patil <sspatil@google.com>
Thu, 13 Apr 2017 01:02:50 +0000 (18:02 -0700)
committerSandeep Patil <sspatil@google.com>
Wed, 21 Jun 2017 21:21:30 +0000 (14:21 -0700)
commitf3308fef4591b5274405ab1b6960b15ed7bfa474
tree8c9579fea2f096bc8d5aad07e690e81b4716432e
parent693c2ea1e42d69d8df1829ff6c345a40c499e93d
install copy of shell in vendor partition

This is to be used by vendor processes. Particularly, vendor shell
scripts that get launched as init services. The shell is restricted from
running as interactive mode in SEPolicy. Unless it is launched from rooted
system shell. The change also adds the ability to override the default
$PATH regardless of the environment.

Bug: 36463595
Test: Boot sailfish with new shell and ensure all init services exit
      with status 0

Merged-In: I1eaf2c8a8f6905caf00d53e067add67eaea00e09
Change-Id: I1eaf2c8a8f6905caf00d53e067add67eaea00e09
Signed-off-by: Sandeep Patil <sspatil@google.com>
(cherry picked from commit c2036115102d80c026b70846812a42204522f9ac)
Android.mk
mkshrc_vendor [new file with mode: 0644]
src/main.c