diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-04-11 12:25:47 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-04-11 12:27:48 -0700 |
commit | 4287cb4595d72066bc2d3cd1e2ac59cde254c707 (patch) | |
tree | 00ceda0ac9b89c669cd9df3e4db3ec75c8abda57 /cmds/dumpstate | |
parent | 258385978c517a47626161b1e644c48bcee28de1 (diff) | |
download | frameworks_native-4287cb4595d72066bc2d3cd1e2ac59cde254c707.zip frameworks_native-4287cb4595d72066bc2d3cd1e2ac59cde254c707.tar.gz frameworks_native-4287cb4595d72066bc2d3cd1e2ac59cde254c707.tar.bz2 |
Add sdcard_r group to dumpstate.
Bug: 6321962
Change-Id: I318cd88493396f3d8adb5d4d0fc7a12ee40ba737
Diffstat (limited to 'cmds/dumpstate')
-rw-r--r-- | cmds/dumpstate/dumpstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index aa95b35..dd015c6 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -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; |