summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-01-31 14:20:44 -0800
committerJeff Sharkey <jsharkey@android.com>2012-01-31 14:21:01 -0800
commitc797b8a925aed9b1dd5ab7525eb28a96e557550d (patch)
tree0db318cfbbcb85b77656ef78ac8b14a7285345f6 /cmds/dumpstate
parent4d6da8649afc43022a156bffca6cd2c9127cefe1 (diff)
downloadframeworks_base-c797b8a925aed9b1dd5ab7525eb28a96e557550d.zip
frameworks_base-c797b8a925aed9b1dd5ab7525eb28a96e557550d.tar.gz
frameworks_base-c797b8a925aed9b1dd5ab7525eb28a96e557550d.tar.bz2
Dump xt_qtaguid stats to using GID instead of su.
Change-Id: I77a956cf37c1f1f792f6939b2f32a47f1cbe14c0
Diffstat (limited to 'cmds/dumpstate')
-rw-r--r--cmds/dumpstate/dumpstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 83c881a..16dc517 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -122,7 +122,7 @@ static void dumpstate() {
dump_file("NETWORK DEV INFO", "/proc/net/dev");
dump_file("QTAGUID NETWORK INTERFACES INFO", "/proc/net/xt_qtaguid/iface_stat_all");
dump_file("QTAGUID CTRL INFO", "/proc/net/xt_qtaguid/ctrl");
- run_command("QTAGUID STATS INFO", 10, "su", "root", "cat", "/proc/net/xt_qtaguid/stats", NULL);
+ dump_file("QTAGUID STATS INFO", "/proc/net/xt_qtaguid/stats");
dump_file("NETWORK ROUTES", "/proc/net/route");
dump_file("NETWORK ROUTES IPV6", "/proc/net/ipv6_route");
@@ -334,7 +334,7 @@ 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 };
+ gid_t groups[] = { AID_LOG, 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;