Add setuid/setgid capabilities to simpleperf_app_runner.

Also add simpleperf_app_runner in shell utilities.

Bug: 118835348
Test: build and boot.
Test: run simpleperf_app_runner manually.

Change-Id: I538503dabfa8ff192f4b3029206a62613eacdf32
This commit is contained in:
Yabin Cui 2019-01-08 16:31:56 -08:00
parent 7ca2c565b0
commit af3e30d271
2 changed files with 4 additions and 0 deletions

View file

@ -197,6 +197,9 @@ static const struct fs_path_config android_files[] = {
{ 00750, AID_ROOT, AID_SHELL, CAP_MASK_LONG(CAP_SETUID) |
CAP_MASK_LONG(CAP_SETGID),
"system/bin/run-as" },
{ 00750, AID_ROOT, AID_SHELL, CAP_MASK_LONG(CAP_SETUID) |
CAP_MASK_LONG(CAP_SETGID),
"system/bin/simpleperf_app_runner" },
// Support FIFO scheduling mode in SurfaceFlinger.
{ 00755, AID_SYSTEM, AID_GRAPHICS, CAP_MASK_LONG(CAP_SYS_NICE),

View file

@ -19,6 +19,7 @@ phony {
"reboot",
"sh",
"simpleperf",
"simpleperf_app_runner",
"tcpdump",
"toolbox",
"toybox",