diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2014-09-24 15:08:48 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2014-10-27 17:01:55 +0800 |
commit | 6ed3d7f584fe84e0a043c017cef965fbe67d7f31 (patch) | |
tree | 33572eca4dc37bcb4e87885882785189c529300f | |
parent | a84b4302f358da372ebbd5da83f9a56136938c4d (diff) | |
download | fvp-armv8-6ed3d7f584fe84e0a043c017cef965fbe67d7f31.tar.gz |
init.rc and BoardConfig.mk: make console service run with su domain
make the console service run with u:r:su:s0 security context,
so that we can run tests like linaro_android_kernel_test that
need to run with root user level permission.
This change is a hack to make it possible to run the test on
the console shell of eng/userdebug build for lava, and this change will
break the build of user mode, since user mode does not have the
su domain defined.
For normal eng/userdebug build, we can change to the root user
with su command, and run tests under this context
Change-Id: I6d1600cdd31c04515970aae26ff283ef5985c884
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | BoardConfig.mk | 7 | ||||
-rw-r--r-- | init.rc | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 76a1343..6aa6009 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -60,8 +60,11 @@ TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true BOARD_SEPOLICY_DIRS += device/linaro/common/sepolicy BOARD_SEPOLICY_UNION += \ - netd.te \ - shell.te \ + init.te \ init_shell.te \ + kernel.te \ + logd.te \ mediaserver.te \ + netd.te \ + shell.te \ surfaceflinger.te @@ -502,7 +502,7 @@ service console /system/bin/sh console disabled group log - seclabel u:r:shell:s0 + seclabel u:r:su:s0 on property:ro.debuggable=1 start console |