OSDN Git Service

Add socket dumps via ss to bugreports.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 26 Sep 2016 04:37:45 +0000 (13:37 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 26 Sep 2016 04:37:45 +0000 (13:37 +0900)
Bug: 23113288
Change-Id: I6304425f968fcb22c75c3f6e64bf7992e34e0889

cmds/dumpstate/dumpstate.cpp

index 23629b3..6fa42f3 100644 (file)
@@ -1373,6 +1373,9 @@ int main(int argc, char *argv[]) {
     add_mountinfo();
     dump_iptables();
 
+    // Run ss as root so we can see socket marks.
+    run_command("DETAILED SOCKET STATE", 10, "ss", "-eionptu", NULL);
+
     if (!drop_root_user()) {
         return -1;
     }