summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2016-09-13 15:48:35 -0700
committerMark Salyzyn <salyzyn@google.com>2016-12-19 15:57:01 +0000
commit7702f80c2022c15f55ebb4fadb39b28e1748b5c6 (patch)
tree6a2cf1c038246b1279d55c99444c5ef422b216d7
parent803609343fd4417f5526ae26534841cf6c301171 (diff)
liblog: pmsg read permissions for AID_LOGD
Test: gTest liblog-unit-test and logd-unit-tests Bug: 31456426 Change-Id: I7a2fe8245ecd651883f7851ce71b6c45e373af82
-rw-r--r--liblog/pmsg_reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/pmsg_reader.c b/liblog/pmsg_reader.c
index a0a69c1894..e1b81aaf05 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()