summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2017-02-21 18:19:08 -0600
committerMark Salyzyn2017-02-22 16:16:31 -0600
commit407537f798c443a2252fd3bbbd1535f7d6fabc53 (patch)
treec1b031477a9f5ea6907d920c3d9d1241a5a8df6a /logd/LogTags.h
parent8dcd94b2cd01fed5fa0c1e6d56af1bba5389a866 (diff)
downloadplatform-system-core-407537f798c443a2252fd3bbbd1535f7d6fabc53.tar.gz
platform-system-core-407537f798c443a2252fd3bbbd1535f7d6fabc53.tar.xz
platform-system-core-407537f798c443a2252fd3bbbd1535f7d6fabc53.zip
logd: add getEventTag id= command
This is the precursor for "Plan B" recovery when access to /dev/event-log-tags is blocked to untrusted zones. Also deals with mitigating issues with long-lived mappings that do not update /dev/event-log-tags when dynamically changed. Test: gTest logd-unit-test --gtest_filter=logd.getEventTag_42 Bug: 31456426 Bug: 35326290 Change-Id: I3db2e73763603727a369da3952c5ab4cf709f901
Diffstat (limited to 'logd/LogTags.h')
-rw-r--r--logd/LogTags.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/logd/LogTags.h b/logd/LogTags.h
index 37a6d9632..4457c462f 100644
--- a/logd/LogTags.h
+++ b/logd/LogTags.h
@@ -106,6 +106,7 @@ public:
106 // reverse lookup from tag 106 // reverse lookup from tag
107 const char* tagToName(uint32_t tag) const; 107 const char* tagToName(uint32_t tag) const;
108 const char* tagToFormat(uint32_t tag) const; 108 const char* tagToFormat(uint32_t tag) const;
109 std::string formatEntry(uint32_t tag, uid_t uid);
109 // find associated tag 110 // find associated tag
110 uint32_t nameToTag(const char* name) const; 111 uint32_t nameToTag(const char* name) const;
111 112