Add sdcard_r group to dumpstate.
Bug: 6321962 Change-Id: I318cd88493396f3d8adb5d4d0fc7a12ee40ba737
This commit is contained in:
parent
258385978c
commit
4287cb4595
@ -358,7 +358,8 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* switch to non-root user and group */
|
/* 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) {
|
if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
|
||||||
ALOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
|
ALOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user