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

Commit fd535982 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

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

parents fd684323 ab46a492
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -694,7 +694,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