summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-03-28 18:20:29 -0500
committerMark Salyzyn2016-03-29 14:29:04 -0500
commitc33103c440517ae8fa5589c22eef795627adf793 (patch)
tree29a8ea836fef441e1d886c8486bd2b5a7b47e039 /liblog/logger.h
parentd8c88fc5e339105cca3d207826675fdf95bfadc9 (diff)
downloadplatform-system-core-c33103c440517ae8fa5589c22eef795627adf793.tar.gz
platform-system-core-c33103c440517ae8fa5589c22eef795627adf793.tar.xz
platform-system-core-c33103c440517ae8fa5589c22eef795627adf793.zip
liblog: gate write on log id available
- Secure LOG_ID_KERNEL in writer - Secure LOG_ID_SECURITY in reader and writer - if writer transport says not available, do not write to that log id Bug: 27566046 Bug: 27896341 Change-Id: If63a78a56fb94adfbf9979454c4cadb81af45c19
Diffstat (limited to 'liblog/logger.h')
-rw-r--r--liblog/logger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/liblog/logger.h b/liblog/logger.h
index 61bc3968a..5d031d79f 100644
--- a/liblog/logger.h
+++ b/liblog/logger.h
@@ -40,6 +40,7 @@ union android_log_context {
40struct android_log_transport_write { 40struct android_log_transport_write {
41 struct listnode node; 41 struct listnode node;
42 const char *name; 42 const char *name;
43 unsigned logMask; /* cache of available success */
43 union android_log_context context; /* Initialized by static allocation */ 44 union android_log_context context; /* Initialized by static allocation */
44 45
45 int (*available)(log_id_t logId); 46 int (*available)(log_id_t logId);