blob: e7a69ebef03fcccf1ef22974360661f96b41d14f [file] [log] [blame]
Mark Salyzyn0175b072014-02-26 09:50:16 -08001/*
2 * Copyright (C) 2012-2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <dirent.h>
18#include <errno.h>
19#include <fcntl.h>
Tom Cherry0b2a0112019-06-06 13:41:20 -070020#include <linux/capability.h>
Mark Salyzyn11e55cb2015-03-10 16:45:17 -070021#include <poll.h>
Mark Salyzyn882f8562013-12-26 15:13:36 -080022#include <sched.h>
Mark Salyzyn11e55cb2015-03-10 16:45:17 -070023#include <semaphore.h>
24#include <signal.h>
Mark Salyzyn0175b072014-02-26 09:50:16 -080025#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <sys/capability.h>
Mark Salyzyneb06de72014-10-13 09:59:37 -070029#include <sys/klog.h>
Elliott Hughese5a0f202014-07-18 17:39:41 -070030#include <sys/prctl.h>
Riley Andrewsd98f4e82015-06-08 23:36:34 -070031#include <sys/resource.h>
Mark Salyzyn0175b072014-02-26 09:50:16 -080032#include <sys/stat.h>
33#include <sys/types.h>
Mark Salyzynccbadc62015-03-12 12:25:35 -070034#include <syslog.h>
Mark Salyzyne457b742014-02-19 17:18:31 -080035#include <unistd.h>
Mark Salyzyn0175b072014-02-26 09:50:16 -080036
Mark Salyzynd5600fd2015-06-12 14:59:42 -070037#include <memory>
38
Tom Cherryf93b4002020-06-03 09:23:49 -070039#include <android-base/logging.h>
Jorge Lucangeli Obes2bbdbe82016-07-15 13:57:08 -040040#include <android-base/macros.h>
Tom Cherryc1edd662020-07-14 09:52:24 -070041#include <android-base/properties.h>
Tom Cherryf93b4002020-06-03 09:23:49 -070042#include <android-base/stringprintf.h>
Mark Salyzyn52bd37e2016-11-07 09:39:30 -080043#include <cutils/android_get_control_file.h>
Mark Salyzyn11e55cb2015-03-10 16:45:17 -070044#include <cutils/sockets.h>
Mark Salyzynff32f3c2015-04-13 14:24:45 -070045#include <log/event_tag_map.h>
William Robertsaeca97b2015-07-31 13:10:36 -070046#include <packagelistparser/packagelistparser.h>
Mark Salyzyne3aeeee2015-03-17 07:56:32 -070047#include <private/android_filesystem_config.h>
Mark Salyzyn5740a462016-03-28 15:42:08 -070048#include <private/android_logger.h>
Suren Baghdasaryan02843332018-12-21 12:30:16 -080049#include <processgroup/sched_policy.h>
Riley Andrewsd98f4e82015-06-08 23:36:34 -070050#include <utils/threads.h>
Mark Salyzyne457b742014-02-19 17:18:31 -080051
Tom Cherryd5b38382020-05-12 13:16:41 -070052#include "ChattyLogBuffer.h"
Mark Salyzyn0175b072014-02-26 09:50:16 -080053#include "CommandListener.h"
William Roberts29d238d2013-02-08 09:45:26 +090054#include "LogAudit.h"
Mark Salyzyn501c3732017-03-10 14:31:54 -080055#include "LogBuffer.h"
Mark Salyzyna1aacb72014-10-15 08:49:39 -070056#include "LogKlog.h"
Mark Salyzyn501c3732017-03-10 14:31:54 -080057#include "LogListener.h"
Tom Cherry283c9a12020-05-14 19:25:05 -070058#include "LogReader.h"
Tom Cherry64e90162020-05-07 14:44:43 -070059#include "LogStatistics.h"
Tom Cherry1a12ae32020-05-01 16:13:18 -070060#include "LogTags.h"
Mark Salyzyn5ac5c6b2015-08-28 08:02:59 -070061#include "LogUtils.h"
Tom Cherry1a796bc2020-05-13 09:28:37 -070062#include "SerializedLogBuffer.h"
Tom Cherry8f613462020-05-12 12:46:43 -070063#include "SimpleLogBuffer.h"
Mark Salyzyn0175b072014-02-26 09:50:16 -080064
Tom Cherryc1edd662020-07-14 09:52:24 -070065using android::base::GetProperty;
66
Mark Salyzyn501c3732017-03-10 14:31:54 -080067#define KMSG_PRIORITY(PRI) \
68 '<', '0' + LOG_MAKEPRI(LOG_DAEMON, LOG_PRI(PRI)) / 10, \
69 '0' + LOG_MAKEPRI(LOG_DAEMON, LOG_PRI(PRI)) % 10, '>'
Mark Salyzynccbadc62015-03-12 12:25:35 -070070
Tom Cherry0b2a0112019-06-06 13:41:20 -070071// The service is designed to be run by init, it does not respond well to starting up manually. Init
72// has a 'sigstop' feature that sends SIGSTOP to a service immediately before calling exec(). This
73// allows debuggers, etc to be attached to logd at the very beginning, while still having init
74// handle the user, groups, capabilities, files, etc setup.
Tom Cherry54b00a92020-06-22 10:15:04 -070075static void DropPrivs(bool klogd, bool auditd) {
Mark Salyzyn56ba4b52015-01-30 15:19:48 -080076 if (set_sched_policy(0, SP_BACKGROUND) < 0) {
Tom Cherry54b00a92020-06-22 10:15:04 -070077 PLOG(FATAL) << "failed to set background scheduling policy";
Mark Salyzyn56ba4b52015-01-30 15:19:48 -080078 }
79
Tom Cherry54b00a92020-06-22 10:15:04 -070080 sched_param param = {};
Mark Salyzyn501c3732017-03-10 14:31:54 -080081 if (sched_setscheduler((pid_t)0, SCHED_BATCH, &param) < 0) {
Tom Cherry54b00a92020-06-22 10:15:04 -070082 PLOG(FATAL) << "failed to set batch scheduler";
Mark Salyzyn882f8562013-12-26 15:13:36 -080083 }
84
Tom Cherryf93b4002020-06-03 09:23:49 -070085 if (!__android_logger_property_get_bool("ro.debuggable", BOOL_DEFAULT_FALSE) &&
Elliott Hughescef62b42018-06-13 10:33:45 -070086 prctl(PR_SET_DUMPABLE, 0) == -1) {
Tom Cherry54b00a92020-06-22 10:15:04 -070087 PLOG(FATAL) << "failed to clear PR_SET_DUMPABLE";
Mark Salyzyn6a70ded2016-10-28 14:49:53 -070088 }
89
Tom Cherry0b2a0112019-06-06 13:41:20 -070090 std::unique_ptr<struct _cap_struct, int (*)(void*)> caps(cap_init(), cap_free);
91 if (cap_clear(caps.get()) < 0) {
Tom Cherry54b00a92020-06-22 10:15:04 -070092 PLOG(FATAL) << "cap_clear() failed";
Mark Salyzyn501c3732017-03-10 14:31:54 -080093 }
Tom Cherry0b2a0112019-06-06 13:41:20 -070094 if (klogd) {
Tom Cherry54b00a92020-06-22 10:15:04 -070095 cap_value_t cap_syslog = CAP_SYSLOG;
96 if (cap_set_flag(caps.get(), CAP_PERMITTED, 1, &cap_syslog, CAP_SET) < 0 ||
97 cap_set_flag(caps.get(), CAP_EFFECTIVE, 1, &cap_syslog, CAP_SET) < 0) {
98 PLOG(FATAL) << "Failed to set CAP_SYSLOG";
99 }
Tom Cherry0b2a0112019-06-06 13:41:20 -0700100 }
101 if (auditd) {
Tom Cherry54b00a92020-06-22 10:15:04 -0700102 cap_value_t cap_audit_control = CAP_AUDIT_CONTROL;
103 if (cap_set_flag(caps.get(), CAP_PERMITTED, 1, &cap_audit_control, CAP_SET) < 0 ||
104 cap_set_flag(caps.get(), CAP_EFFECTIVE, 1, &cap_audit_control, CAP_SET) < 0) {
105 PLOG(FATAL) << "Failed to set CAP_AUDIT_CONTROL";
106 }
Mark Salyzyn501c3732017-03-10 14:31:54 -0800107 }
Mark Salyzynf0b8e1b2016-10-28 14:49:53 -0700108 if (cap_set_proc(caps.get()) < 0) {
Tom Cherry54b00a92020-06-22 10:15:04 -0700109 PLOG(FATAL) << "cap_set_proc() failed";
Mark Salyzynf0b8e1b2016-10-28 14:49:53 -0700110 }
Mark Salyzyn0175b072014-02-26 09:50:16 -0800111}
112
Mark Salyzyn501c3732017-03-10 14:31:54 -0800113char* android::uidToName(uid_t u) {
Tom Cherry36f53992017-09-06 10:07:37 -0700114 struct Userdata {
115 uid_t uid;
116 char* name;
117 } userdata = {
118 .uid = u,
119 .name = nullptr,
120 };
Mark Salyzyn08739ba2015-03-16 08:26:05 -0700121
Tom Cherry36f53992017-09-06 10:07:37 -0700122 packagelist_parse(
123 [](pkg_info* info, void* callback_parameter) {
124 auto userdata = reinterpret_cast<Userdata*>(callback_parameter);
125 bool result = true;
126 if (info->uid == userdata->uid) {
127 userdata->name = strdup(info->name);
128 // false to stop processing
129 result = false;
130 }
131 packagelist_free(info);
132 return result;
133 },
134 &userdata);
Mark Salyzyn95108f12015-04-20 07:26:27 -0700135
Tom Cherry36f53992017-09-06 10:07:37 -0700136 return userdata.name;
Mark Salyzyn08739ba2015-03-16 08:26:05 -0700137}
138
Mark Salyzyn501c3732017-03-10 14:31:54 -0800139static void readDmesg(LogAudit* al, LogKlog* kl) {
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700140 if (!al && !kl) {
141 return;
142 }
143
Mark Salyzyn0484b3b2016-08-11 08:02:06 -0700144 int rc = klogctl(KLOG_SIZE_BUFFER, nullptr, 0);
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700145 if (rc <= 0) {
146 return;
147 }
148
Mark Salyzyn0484b3b2016-08-11 08:02:06 -0700149 // Margin for additional input race or trailing nul
150 ssize_t len = rc + 1024;
Mark Salyzyn501c3732017-03-10 14:31:54 -0800151 std::unique_ptr<char[]> buf(new char[len]);
Mark Salyzynea1a2412015-09-02 07:39:53 -0700152
153 rc = klogctl(KLOG_READ_ALL, buf.get(), len);
154 if (rc <= 0) {
155 return;
156 }
157
Mark Salyzyn0484b3b2016-08-11 08:02:06 -0700158 if (rc < len) {
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700159 len = rc + 1;
160 }
Mark Salyzynea1a2412015-09-02 07:39:53 -0700161 buf[--len] = '\0';
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700162
Mark Salyzyn0484b3b2016-08-11 08:02:06 -0700163 ssize_t sublen;
164 for (char *ptr = nullptr, *tok = buf.get();
165 (rc >= 0) && !!(tok = android::log_strntok_r(tok, len, ptr, sublen));
166 tok = nullptr) {
167 if ((sublen <= 0) || !*tok) continue;
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700168 if (al) {
Mark Salyzyn151beac2015-09-04 11:37:42 -0700169 rc = al->log(tok, sublen);
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700170 }
171 if (kl) {
Mark Salyzyn151beac2015-09-04 11:37:42 -0700172 rc = kl->log(tok, sublen);
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700173 }
174 }
175}
176
Mark Salyzynd8f01802016-10-31 13:49:44 -0700177static int issueReinit() {
Mark Salyzyn501c3732017-03-10 14:31:54 -0800178 int sock = TEMP_FAILURE_RETRY(socket_local_client(
179 "logd", ANDROID_SOCKET_NAMESPACE_RESERVED, SOCK_STREAM));
Mark Salyzynd8f01802016-10-31 13:49:44 -0700180 if (sock < 0) return -errno;
181
182 static const char reinitStr[] = "reinit";
183 ssize_t ret = TEMP_FAILURE_RETRY(write(sock, reinitStr, sizeof(reinitStr)));
184 if (ret < 0) return -errno;
185
186 struct pollfd p;
187 memset(&p, 0, sizeof(p));
188 p.fd = sock;
189 p.events = POLLIN;
190 ret = TEMP_FAILURE_RETRY(poll(&p, 1, 1000));
191 if (ret < 0) return -errno;
192 if ((ret == 0) || !(p.revents & POLLIN)) return -ETIME;
193
194 static const char success[] = "success";
195 char buffer[sizeof(success) - 1];
196 memset(buffer, 0, sizeof(buffer));
197 ret = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer)));
198 if (ret < 0) return -errno;
199
200 return strncmp(buffer, success, sizeof(success) - 1) != 0;
201}
202
Mark Salyzyn11e55cb2015-03-10 16:45:17 -0700203// Foreground waits for exit of the main persistent threads
204// that are started here. The threads are created to manage
205// UNIX domain client sockets for writing, reading and
206// controlling the user space logger, and for any additional
207// logging plugins like auditd and restart control. Additional
208// transitory per-client threads are created for each reader.
Mark Salyzyn501c3732017-03-10 14:31:54 -0800209int main(int argc, char* argv[]) {
Hidehiko Abe352476e2017-03-29 17:41:17 +0900210 // logd is written under the assumption that the timezone is UTC.
211 // If TZ is not set, persist.sys.timezone is looked up in some time utility
212 // libc functions, including mktime. It confuses the logd time handling,
213 // so here explicitly set TZ to UTC, which overrides the property.
214 setenv("TZ", "UTC", 1);
Mark Salyzyn11e55cb2015-03-10 16:45:17 -0700215 // issue reinit command. KISS argument parsing.
216 if ((argc > 1) && argv[1] && !strcmp(argv[1], "--reinit")) {
Mark Salyzynd8f01802016-10-31 13:49:44 -0700217 return issueReinit();
Mark Salyzyn11e55cb2015-03-10 16:45:17 -0700218 }
219
Tom Cherryf93b4002020-06-03 09:23:49 -0700220 android::base::InitLogging(
221 argv, [](android::base::LogId log_id, android::base::LogSeverity severity,
222 const char* tag, const char* file, unsigned int line, const char* message) {
223 if (tag && strcmp(tag, "logd") != 0) {
224 auto prefixed_message = android::base::StringPrintf("%s: %s", tag, message);
225 android::base::KernelLogger(log_id, severity, "logd", file, line,
226 prefixed_message.c_str());
227 } else {
228 android::base::KernelLogger(log_id, severity, "logd", file, line, message);
229 }
230 });
231
Mark Salyzyne0b8ccd2016-10-27 08:21:35 -0700232 static const char dev_kmsg[] = "/dev/kmsg";
Tom Cherryf93b4002020-06-03 09:23:49 -0700233 int fdDmesg = android_get_control_file(dev_kmsg);
Mark Salyzyne0b8ccd2016-10-27 08:21:35 -0700234 if (fdDmesg < 0) {
235 fdDmesg = TEMP_FAILURE_RETRY(open(dev_kmsg, O_WRONLY | O_CLOEXEC));
236 }
237
238 int fdPmesg = -1;
Mark Salyzyn501c3732017-03-10 14:31:54 -0800239 bool klogd = __android_logger_property_get_bool(
Siarhei Vishniakoue8ed36b2017-12-28 14:13:22 -0800240 "ro.logd.kernel",
241 BOOL_DEFAULT_TRUE | BOOL_DEFAULT_FLAG_ENG | BOOL_DEFAULT_FLAG_SVELTE);
Mark Salyzyne0b8ccd2016-10-27 08:21:35 -0700242 if (klogd) {
243 static const char proc_kmsg[] = "/proc/kmsg";
244 fdPmesg = android_get_control_file(proc_kmsg);
245 if (fdPmesg < 0) {
Mark Salyzyn501c3732017-03-10 14:31:54 -0800246 fdPmesg = TEMP_FAILURE_RETRY(
247 open(proc_kmsg, O_RDONLY | O_NDELAY | O_CLOEXEC));
Mark Salyzyne0b8ccd2016-10-27 08:21:35 -0700248 }
Tom Cherryf93b4002020-06-03 09:23:49 -0700249 if (fdPmesg < 0) PLOG(ERROR) << "Failed to open " << proc_kmsg;
Mark Salyzyne0b8ccd2016-10-27 08:21:35 -0700250 }
251
Tom Cherry0b2a0112019-06-06 13:41:20 -0700252 bool auditd = __android_logger_property_get_bool("ro.logd.auditd", BOOL_DEFAULT_TRUE);
Tom Cherry54b00a92020-06-22 10:15:04 -0700253 DropPrivs(klogd, auditd);
Tom Cherry0b2a0112019-06-06 13:41:20 -0700254
Tom Cherry1a12ae32020-05-01 16:13:18 -0700255 // A cache of event log tags
256 LogTags log_tags;
Tom Cherry68630a02020-05-11 16:29:29 -0700257
Tom Cherry5a3db392020-05-01 17:03:20 -0700258 // Pruning configuration.
259 PruneList prune_list;
Tom Cherry68630a02020-05-11 16:29:29 -0700260
Tom Cherrybc721972020-07-22 15:30:02 -0700261 std::string buffer_type = GetProperty("logd.buffer_type", "serialized");
Tom Cherryc1edd662020-07-14 09:52:24 -0700262
Tom Cherry64e90162020-05-07 14:44:43 -0700263 // Partial (required for chatty) or full logging statistics.
264 bool enable_full_log_statistics = __android_logger_property_get_bool(
265 "logd.statistics", BOOL_DEFAULT_TRUE | BOOL_DEFAULT_FLAG_PERSIST |
266 BOOL_DEFAULT_FLAG_ENG | BOOL_DEFAULT_FLAG_SVELTE);
Tom Cherryc1edd662020-07-14 09:52:24 -0700267 LogStatistics log_statistics(enable_full_log_statistics, buffer_type == "serialized");
Tom Cherry1a12ae32020-05-01 16:13:18 -0700268
Tom Cherryc1edd662020-07-14 09:52:24 -0700269 // Serves the purpose of managing the last logs times read on a socket connection, and as a
270 // reader lock on a range of log entries.
Tom Cherry68630a02020-05-11 16:29:29 -0700271 LogReaderList reader_list;
Mark Salyzyn0175b072014-02-26 09:50:16 -0800272
Tom Cherry8f613462020-05-12 12:46:43 -0700273 // LogBuffer is the object which is responsible for holding all log entries.
Tom Cherryc1edd662020-07-14 09:52:24 -0700274 LogBuffer* log_buffer = nullptr;
275 if (buffer_type == "chatty") {
276 log_buffer = new ChattyLogBuffer(&reader_list, &log_tags, &prune_list, &log_statistics);
277 } else if (buffer_type == "serialized") {
278 log_buffer = new SerializedLogBuffer(&reader_list, &log_tags, &log_statistics);
279 } else if (buffer_type == "simple") {
280 log_buffer = new SimpleLogBuffer(&reader_list, &log_tags, &log_statistics);
Tom Cherry8f613462020-05-12 12:46:43 -0700281 } else {
Tom Cherryc1edd662020-07-14 09:52:24 -0700282 LOG(FATAL) << "buffer_type must be one of 'chatty', 'serialized', or 'simple'";
Tom Cherry8f613462020-05-12 12:46:43 -0700283 }
Mark Salyzyne457b742014-02-19 17:18:31 -0800284
Mark Salyzyn0175b072014-02-26 09:50:16 -0800285 // LogReader listens on /dev/socket/logdr. When a client
286 // connects, log entries in the LogBuffer are written to the client.
Tom Cherryc1edd662020-07-14 09:52:24 -0700287 LogReader* reader = new LogReader(log_buffer, &reader_list);
Mark Salyzyn0175b072014-02-26 09:50:16 -0800288 if (reader->startListener()) {
Elliott Hughescef62b42018-06-13 10:33:45 -0700289 return EXIT_FAILURE;
Mark Salyzyn0175b072014-02-26 09:50:16 -0800290 }
291
292 // LogListener listens on /dev/socket/logdw for client
293 // initiated log messages. New log entries are added to LogBuffer
294 // and LogReader is notified to send updates to connected clients.
Tom Cherryc1edd662020-07-14 09:52:24 -0700295 LogListener* swl = new LogListener(log_buffer);
Tom Cherryc64dd8e2020-05-06 12:04:09 -0700296 if (!swl->StartListener()) {
Elliott Hughescef62b42018-06-13 10:33:45 -0700297 return EXIT_FAILURE;
Mark Salyzyn0175b072014-02-26 09:50:16 -0800298 }
299
300 // Command listener listens on /dev/socket/logd for incoming logd
301 // administrative commands.
Tom Cherryc1edd662020-07-14 09:52:24 -0700302 CommandListener* cl = new CommandListener(log_buffer, &log_tags, &prune_list, &log_statistics);
Mark Salyzyn0175b072014-02-26 09:50:16 -0800303 if (cl->startListener()) {
Elliott Hughescef62b42018-06-13 10:33:45 -0700304 return EXIT_FAILURE;
Mark Salyzyn0175b072014-02-26 09:50:16 -0800305 }
306
William Roberts29d238d2013-02-08 09:45:26 +0900307 // LogAudit listens on NETLINK_AUDIT socket for selinux
308 // initiated log messages. New log entries are added to LogBuffer
309 // and LogReader is notified to send updates to connected clients.
Mark Salyzyn0484b3b2016-08-11 08:02:06 -0700310 LogAudit* al = nullptr;
Sami Tolvanena742d102016-06-14 18:04:43 +0000311 if (auditd) {
Tom Cherry68630a02020-05-11 16:29:29 -0700312 int dmesg_fd = __android_logger_property_get_bool("ro.logd.auditd.dmesg", BOOL_DEFAULT_TRUE)
313 ? fdDmesg
314 : -1;
Tom Cherryc1edd662020-07-14 09:52:24 -0700315 al = new LogAudit(log_buffer, dmesg_fd, &log_statistics);
Sami Tolvanena742d102016-06-14 18:04:43 +0000316 }
Mark Salyzyn11e55cb2015-03-10 16:45:17 -0700317
Mark Salyzyn0484b3b2016-08-11 08:02:06 -0700318 LogKlog* kl = nullptr;
Mark Salyzyna1aacb72014-10-15 08:49:39 -0700319 if (klogd) {
Tom Cherryc1edd662020-07-14 09:52:24 -0700320 kl = new LogKlog(log_buffer, fdDmesg, fdPmesg, al != nullptr, &log_statistics);
Mark Salyzyna1aacb72014-10-15 08:49:39 -0700321 }
Mark Salyzyneb06de72014-10-13 09:59:37 -0700322
Sami Tolvanena742d102016-06-14 18:04:43 +0000323 readDmesg(al, kl);
Mark Salyzyneb06de72014-10-13 09:59:37 -0700324
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700325 // failure is an option ... messages are in dmesg (required by standard)
Mark Salyzynd5600fd2015-06-12 14:59:42 -0700326 if (kl && kl->startListener()) {
327 delete kl;
328 }
Mark Salyzyneb06de72014-10-13 09:59:37 -0700329
Sami Tolvanena742d102016-06-14 18:04:43 +0000330 if (al && al->startListener()) {
331 delete al;
William Roberts29d238d2013-02-08 09:45:26 +0900332 }
333
Mark Salyzyn11e55cb2015-03-10 16:45:17 -0700334 TEMP_FAILURE_RETRY(pause());
335
Elliott Hughescef62b42018-06-13 10:33:45 -0700336 return EXIT_SUCCESS;
Mark Salyzyn0175b072014-02-26 09:50:16 -0800337}