Revert "logd: validate and fill in socket credentials"
We don't want to fake socket credentials if they were not provided by
the kernel. If there is a bug preventing us from reading the
credentials then it must be solved directly.
Test: logd, liblog unit tests
Test: boot and ensure overflow uid doesn't show up
This reverts commit c4e4823b00a94627e922eada1172688818471b0c.
Change-Id: I683129a8a214637635f163ae25c39bb8a47cd50f
diff --git a/logd/LogBuffer.h b/logd/LogBuffer.h
index 774d4ab..404433f 100644
--- a/logd/LogBuffer.h
+++ b/logd/LogBuffer.h
@@ -159,12 +159,7 @@
const char* pidToName(pid_t pid) {
return stats.pidToName(pid);
}
- virtual uid_t pidToUid(pid_t pid) override {
- return stats.pidToUid(pid);
- }
- virtual pid_t tidToPid(pid_t tid) override {
- return stats.tidToPid(tid);
- }
+ uid_t pidToUid(pid_t pid) { return stats.pidToUid(pid); }
const char* uidToName(uid_t uid) {
return stats.uidToName(uid);
}