mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
2aa9719dd6
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
18 lines
382 B
Bash
18 lines
382 B
Bash
#!/bin/sh
|
|
check_c() {
|
|
logit "\n"
|
|
info "99 - Community contributed checks"
|
|
}
|
|
|
|
# check_c_1
|
|
check_c_1() {
|
|
check_c_1="C.1 - This is a example check"
|
|
totalChecks=$((totalChecks + 1))
|
|
if docker info --format='{{ .Architecture }}' | grep 'x86_64' 2>/dev/null 1>&2; then
|
|
pass "$check_c_1"
|
|
logjson "c.1" "PASS"
|
|
else
|
|
warn "$check_c_1"
|
|
logjson "c.1" "WARN"
|
|
fi
|
|
}
|