From 5bd8f2d956ebeb0d21583a35450d170f43dc7719 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Tue, 13 Sep 2016 15:48:35 -0700 Subject: [PATCH] liblog: pmsg read permissions for AID_LOGD Test: gTest liblog-unit-test and logd-unit-tests Bug: 31456426 Change-Id: I7a2fe8245ecd651883f7851ce71b6c45e373af82 --- liblog/pmsg_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblog/pmsg_reader.c b/liblog/pmsg_reader.c index a0a69c189..e1b81aaf0 100644 --- a/liblog/pmsg_reader.c +++ b/liblog/pmsg_reader.c @@ -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()