summaryrefslogtreecommitdiff
path: root/debuggerd/tombstone.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-01-26 10:46:44 -0800
committerMark Salyzyn <salyzyn@google.com>2015-02-25 17:44:18 +0000
commit2d3f38a6b8e724749b59d201a01b35fa0951141e (patch)
tree99855d3dd759307ced68e36ad7206747e55bf51d /debuggerd/tombstone.cpp
parent72bf2a710089b5fff42059d5946fe7bdd6b12480 (diff)
liblog: introduce ANDROID_LOG_* flags
Move away from using POSIX open(2) flags and introduce ANDROID_LOG_* flags to replace them. Add security by preventing random mode flags from getting into underlying POSIX calls. ANDROID_LOG_* flags overlap POSIX O_* flag definitions. Change-Id: Ib32bb64c287e8bf150be62242e1ba46bb37839fc
Diffstat (limited to 'debuggerd/tombstone.cpp')
-rw-r--r--debuggerd/tombstone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp
index 4233d46745..e927ea3afd 100644
--- a/debuggerd/tombstone.cpp
+++ b/debuggerd/tombstone.cpp
@@ -453,7 +453,7 @@ static void dump_log_file(
}
logger_list = android_logger_list_open(
- android_name_to_log_id(filename), O_RDONLY | O_NONBLOCK, tail, pid);
+ android_name_to_log_id(filename), ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, tail, pid);
if (!logger_list) {
ALOGE("Unable to open %s: %s\n", filename, strerror(errno));