diff options
author | Jiyong Park <jiyong@google.com> | 2019-01-08 14:04:17 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2019-01-09 08:41:45 +0900 |
commit | 805cbc3ac2e3b65839004aceb64c486064c3f6d5 (patch) | |
tree | 222efedf29d040578e2f2ed10f93812578a010ed /apex | |
parent | 06af80e3a476f5f0816b14b5511a393daf4f4459 (diff) | |
download | build_soong-805cbc3ac2e3b65839004aceb64c486064c3f6d5.tar.gz build_soong-805cbc3ac2e3b65839004aceb64c486064c3f6d5.tar.bz2 build_soong-805cbc3ac2e3b65839004aceb64c486064c3f6d5.zip |
Executables in APEXes have root:shell
Executables under /system/bin are configured as (uid:gid)=(root:shell)
by fs_config.cpp. Therefore, an executable that is moved/copied from
/system/bin to an APEX should be configured as such.
Test: adb shell ls -al /system/bin/linker
/apex/com.android.runtime/bin/linker shows
-rwxr-xr-x 1 root shell 1133528 1970-01-01 09:00 /apex/com.android.runtime/bin/linker
-rwxr-xr-x 1 root shell 1133528 1970-01-01 09:00 /system/bin/linker
Change-Id: Ibb698aab237362fed312da2af809cceead8a1092
Diffstat (limited to 'apex')
-rw-r--r-- | apex/apex.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/apex.go b/apex/apex.go index d91bb3c6..c6d2e8e7 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -40,7 +40,7 @@ var ( Command: `echo '/ 1000 1000 0755' > ${out} && ` + `echo '/apex_manifest.json 1000 1000 0644' >> ${out} && ` + `echo ${ro_paths} | tr ' ' '\n' | awk '{print "/"$$1 " 1000 1000 0644"}' >> ${out} && ` + - `echo ${exec_paths} | tr ' ' '\n' | awk '{print "/"$$1 " 1000 1000 0755"}' >> ${out}`, + `echo ${exec_paths} | tr ' ' '\n' | awk '{print "/"$$1 " 0 2000 0755"}' >> ${out}`, Description: "fs_config ${out}", }, "ro_paths", "exec_paths") |