logd: drop can_read_security_logs
This has become useless after refactoring; we instead ensure that the
LOG_ID_SECURITY bit isn't set in log_mask, instead of having this
additional check.
Test: logging unit tests
Change-Id: Id47b288d056ebf2b5bd26be94006f17c24fafd31
diff --git a/logd/LogWriter.h b/logd/LogWriter.h
index b6c5b67..d43c604 100644
--- a/logd/LogWriter.h
+++ b/logd/LogWriter.h
@@ -23,8 +23,7 @@
// An interface for writing logs to a reader.
class LogWriter {
public:
- LogWriter(uid_t uid, bool privileged, bool can_read_security_logs)
- : uid_(uid), privileged_(privileged), can_read_security_logs_(can_read_security_logs) {}
+ LogWriter(uid_t uid, bool privileged) : uid_(uid), privileged_(privileged) {}
virtual ~LogWriter() {}
virtual bool Write(const logger_entry& entry, const char* msg) = 0;
@@ -35,12 +34,10 @@
uid_t uid() const { return uid_; }
bool privileged() const { return privileged_; }
- bool can_read_security_logs() const { return can_read_security_logs_; }
private:
uid_t uid_;
// If this writer sees logs from all UIDs or only its own UID. See clientHasLogCredentials().
bool privileged_;
- bool can_read_security_logs_; // If this writer sees security logs. See CanReadSecurityLogs().
};
\ No newline at end of file