dumpstate: Add secure container + mounted filesystems to bugreport

Change-Id: I0cb465da86976f5cce3594c4bb846aa6510c52d6
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-03-08 08:58:03 -08:00
parent 2390380944
commit 54aa577ea2

View File

@@ -110,6 +110,9 @@ static void dumpstate() {
dump_file("KERNEL WAKELOCKS", "/proc/wakelocks");
dump_file("KERNEL CPUFREQ", "/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state");
run_command("SECURE CONTAINERS", 10, "vdc", "asec", "list", NULL);
run_command("MOUNTED FILESYSTEMS", 10, "df", NULL);
run_command("PROCESSES", 10, "ps", "-P", NULL);
run_command("PROCESSES AND THREADS", 10, "ps", "-t", "-p", "-P", NULL);
run_command("LIBRANK", 10, "librank", NULL);
@@ -208,7 +211,7 @@ int main(int argc, char *argv[]) {
}
/* switch to non-root user and group */
gid_t groups[] = { AID_LOG, AID_SDCARD_RW };
gid_t groups[] = { AID_LOG, AID_SDCARD_RW, AID_MOUNT };
setgroups(sizeof(groups)/sizeof(groups[0]), groups);
setuid(AID_SHELL);