diff options
author | Yabin Cui <yabinc@google.com> | 2019-01-08 16:31:56 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2019-01-22 11:20:10 -0800 |
commit | af3e30d271926965a9c8d0d296d2c87f39ace235 (patch) | |
tree | 722bbe028794ca44d946d337d1e88a208989dff2 /libcutils | |
parent | 7ca2c565b0e58a7d8aa651c7a1853d7824fa60b6 (diff) | |
download | system_core-af3e30d271926965a9c8d0d296d2c87f39ace235.tar.gz system_core-af3e30d271926965a9c8d0d296d2c87f39ace235.tar.bz2 system_core-af3e30d271926965a9c8d0d296d2c87f39ace235.zip |
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
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/fs_config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcutils/fs_config.cpp b/libcutils/fs_config.cpp index 1490fbce6..59cbbc599 100644 --- a/libcutils/fs_config.cpp +++ b/libcutils/fs_config.cpp @@ -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), |