-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cc
25 lines (20 loc) · 944 Bytes
/
main.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <brillo/flag_helper.h>
#include <brillo/syslog_logging.h>
#include "secanomalyd/daemon.h"
int main(int argc, char* argv[]) {
DEFINE_bool(generate_reports, false, "generate crash reports for anomalies");
DEFINE_bool(forbidden_intersection_only_reports, false,
"whether or not to generate crash reports that only contain the "
"forbidden intersection anomaly");
DEFINE_bool(dev, false, "report anomalies when cros_debug=1");
brillo::FlagHelper::Init(argc, argv,
"CrOS security anomaly reporting daemon");
brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty);
secanomalyd::Daemon(FLAGS_generate_reports,
FLAGS_forbidden_intersection_only_reports, FLAGS_dev)
.Run();
return 0;
}