Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af3e30d2 authored by Yabin Cui's avatar Yabin Cui
Browse files

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
parent 7ca2c565
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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),
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ phony {
        "reboot",
        "sh",
        "simpleperf",
        "simpleperf_app_runner",
        "tcpdump",
        "toolbox",
        "toybox",