Merge "Revert "add aid check when writting into logd stats buffer. For now we require aid to be system.""

This commit is contained in:
TreeHugger Robot 2017-12-11 23:34:17 +00:00 committed by Android (Google) Code Review
commit db87e6d15f
1 changed files with 0 additions and 8 deletions

View File

@ -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)