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

Commit 877b5dae authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "Allow read access to /proc entries for other UIDs"

am: fd535982

* commit 'fd535982':
  Allow read access to /proc entries for other UIDs
parents 4ed5d8c9 fd535982
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -693,7 +693,7 @@ int main(int argc, char *argv[]) {

    /* switch to non-root user and group */
    gid_t groups[] = { AID_LOG, AID_SDCARD_R, AID_SDCARD_RW,
            AID_MOUNT, AID_INET, AID_NET_BW_STATS };
            AID_MOUNT, AID_INET, AID_NET_BW_STATS, AID_READPROC };
    if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
        ALOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
        return -1;
+1 −1
Original line number Diff line number Diff line
service servicemanager /system/bin/servicemanager
    class core
    user system
    group system
    group system readproc
    critical
    onrestart restart healthd
    onrestart restart zygote
+1 −1
Original line number Diff line number Diff line
service surfaceflinger /system/bin/surfaceflinger
    class core
    user system
    group graphics drmrpc
    group graphics drmrpc readproc
    onrestart restart zygote
    writepid /dev/cpuset/system-background/tasks