Revert "add aid check when writting into logd stats buffer. For now we require aid to be system."
This reverts commit ec0c886da6
.
I will submit the new permission check through AOSP. Revert this CL to avoid merge conflict.
Change-Id: I5d29ad2cda3579b37dd7136037af0c85c3917f6b
This commit is contained in:
parent
ec0c886da6
commit
6ce5146320
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue