Merge "Add sdcard_r group to dumpstate."

This commit is contained in:
Jeff Sharkey 2012-04-11 12:31:43 -07:00 committed by Android (Google) Code Review
commit f573e9f5ca

View File

@ -358,7 +358,8 @@ int main(int argc, char *argv[]) {
}
/* switch to non-root user and group */
gid_t groups[] = { AID_LOG, AID_SDCARD_RW, AID_MOUNT, AID_INET, AID_NET_BW_STATS };
gid_t groups[] = { AID_LOG, AID_SDCARD_R, AID_SDCARD_RW,
AID_MOUNT, AID_INET, AID_NET_BW_STATS };
if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
ALOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
return -1;