liblog: pmsg read permissions for AID_LOGD
Test: gTest liblog-unit-test and logd-unit-tests Bug: 31456426 Change-Id: I7a2fe8245ecd651883f7851ce71b6c45e373af82
This commit is contained in:
parent
8766ecb78d
commit
5bd8f2d956
|
@ -70,7 +70,7 @@ static int pmsgAvailable(log_id_t logId)
|
|||
/* Determine the credentials of the caller */
|
||||
static bool uid_has_log_permission(uid_t uid)
|
||||
{
|
||||
return (uid == AID_SYSTEM) || (uid == AID_LOG) || (uid == AID_ROOT);
|
||||
return (uid == AID_SYSTEM) || (uid == AID_LOG) || (uid == AID_ROOT) || (uid == AID_LOGD);
|
||||
}
|
||||
|
||||
static uid_t get_best_effective_uid()
|
||||
|
|
Loading…
Reference in New Issue