diff options
author | Yao Chen <yaochen@google.com> | 2017-12-08 23:49:26 +0000 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2017-12-08 23:49:26 +0000 |
commit | 6ce514632010f4af69b28c5a04ad2b108c7f19e2 (patch) | |
tree | df933491371a94e63b8795925f669477246ba6e8 /logd | |
parent | ec0c886da6ff8a1f2855f496b40fd4459c74e7ea (diff) | |
download | system_core-6ce514632010f4af69b28c5a04ad2b108c7f19e2.tar.gz system_core-6ce514632010f4af69b28c5a04ad2b108c7f19e2.tar.bz2 system_core-6ce514632010f4af69b28c5a04ad2b108c7f19e2.zip |
Revert "add aid check when writting into logd stats buffer. For now we require aid to be system."
This reverts commit ec0c886da6ff8a1f2855f496b40fd4459c74e7ea.
I will submit the new permission check through AOSP. Revert this CL to avoid merge conflict.
Change-Id: I5d29ad2cda3579b37dd7136037af0c85c3917f6b
Diffstat (limited to 'logd')
-rw-r--r-- | logd/LogListener.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp index 0bd4008b1..d2df68eef 100644 --- a/logd/LogListener.cpp +++ b/logd/LogListener.cpp @@ -101,14 +101,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) |