diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2017-12-11 23:34:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-12-11 23:34:17 +0000 |
commit | db87e6d15fc4df5e13fb62b27a619aa43e81b81e (patch) | |
tree | 5df429ffeac1d108d2a4e444236fb0ea16551408 | |
parent | c94299a42368714eaa5a46b81a146aaa66b7b193 (diff) | |
parent | 6ce514632010f4af69b28c5a04ad2b108c7f19e2 (diff) | |
download | system_core-db87e6d15fc4df5e13fb62b27a619aa43e81b81e.tar.gz system_core-db87e6d15fc4df5e13fb62b27a619aa43e81b81e.tar.bz2 system_core-db87e6d15fc4df5e13fb62b27a619aa43e81b81e.zip |
Merge "Revert "add aid check when writting into logd stats buffer. For now we require aid to be system.""
-rwxr-xr-x | logd/LogListener.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp index 1df67ee06..fc51dcf08 100755 --- a/logd/LogListener.cpp +++ b/logd/LogListener.cpp @@ -106,14 +106,6 @@ bool LogListener::onDataAvailable(SocketClient* cli) { return false; } - if (header->id == LOG_ID_STATS) { - // Only accept logging from *ManagerService in system server - // Will add more later as we see fit. - if (cred->uid != AID_SYSTEM && cred->gid != AID_SYSTEM) { - return false; - } - } - // Check credential validity, acquire corrected details if not supplied. if (cred->pid == 0) { cred->pid = logbuf ? logbuf->tidToPid(header->tid) |