summaryrefslogtreecommitdiffstats
path: root/src/analyze/analyze-security.c
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/analyze-security.c
parentMerge pull request #11009 from poettering/root-cgroup-again (diff)
parentformat-table: never try to reuse cells that have color/url/uppercase set (diff)
downloadsystemd-0c630f4bf895d30b3aefd690f64f26b682747c39.tar.xz
systemd-0c630f4bf895d30b3aefd690f64f26b682747c39.zip
Merge pull request #11037 from poettering/json-table
optionally output tables as JSON
Diffstat (limited to 'src/analyze/analyze-security.c')
-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();
}