summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-04 14:32:10 +0100
committerGitHub <noreply@github.com>2018-12-04 14:32:10 +0100
commit0c630f4bf895d30b3aefd690f64f26b682747c39 (patch)
tree62bd87b8b268b391da53f452a67973945ef75ddd /src/analyze
parentea900d2bfeb53b8ed6bdaba26be06d49794e2df3 (diff)
parent94a80afed42a8b36d69a229bf44ba690f8f59a78 (diff)
downloadsystemd-0c630f4bf895d30b3aefd690f64f26b682747c39.tar.gz
Merge pull request #11037 from poettering/json-table
optionally output tables as JSON
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze-security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c
index 3d2eeade74..f8ba743f73 100644
--- a/src/analyze/analyze-security.c
+++ b/src/analyze/analyze-security.c
@@ -1399,7 +1399,7 @@ static int assess(const struct security_info *info, Table *overview_table, Analy
int r;
if (!FLAGS_SET(flags, ANALYZE_SECURITY_SHORT)) {
- details_table = table_new("", "NAME", "DESCRIPTION", "WEIGHT", "BADNESS", "RANGE", "EXPOSURE");
+ details_table = table_new(" ", "name", "description", "weight", "badness", "range", "exposure");
if (!details_table)
return log_oom();
@@ -1973,7 +1973,7 @@ int analyze_security(sd_bus *bus, char **units, AnalyzeSecurityFlags flags) {
assert(bus);
if (strv_length(units) != 1) {
- overview_table = table_new("UNIT", "EXPOSURE", "PREDICATE", "HAPPY");
+ overview_table = table_new("unit", "exposure", "predicate", "happy");
if (!overview_table)
return log_oom();
}