summaryrefslogtreecommitdiffstats
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
commit5bd8f2d956ebeb0d21583a35450d170f43dc7719 (patch)
tree6a2cf1c038246b1279d55c99444c5ef422b216d7
parent8766ecb78dab3481b4c21c98fcb3636c6c2d2e8a (diff)
downloadcore-5bd8f2d956ebeb0d21583a35450d170f43dc7719.tar.gz
core-5bd8f2d956ebeb0d21583a35450d170f43dc7719.tar.bz2
core-5bd8f2d956ebeb0d21583a35450d170f43dc7719.zip
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 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()