OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cc1933
)
Add socket dumps via ss to bugreports.
author
Lorenzo Colitti
<lorenzo@google.com>
Mon, 26 Sep 2016 04:37:45 +0000
(13:37 +0900)
committer
Lorenzo Colitti
<lorenzo@google.com>
Mon, 26 Sep 2016 04:37:45 +0000
(13:37 +0900)
Bug:
23113288
Change-Id: I6304425f968fcb22c75c3f6e64bf7992e34e0889
cmds/dumpstate/dumpstate.cpp
patch
|
blob
|
history
diff --git
a/cmds/dumpstate/dumpstate.cpp
b/cmds/dumpstate/dumpstate.cpp
index
23629b3
..
6fa42f3
100644
(file)
--- a/
cmds/dumpstate/dumpstate.cpp
+++ b/
cmds/dumpstate/dumpstate.cpp
@@
-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;
}