summaryrefslogtreecommitdiff
path: root/app-emulation/docker-bench-security/files
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2017-09-07 18:37:27 -0500
committerWilliam Hubbs <williamh@gentoo.org>2017-09-07 18:40:45 -0500
commit96085107a81f810116ae1ec0e2e267debce4c7c0 (patch)
treece43a09694867c9abe72e9e4fec3a98b7df38eb8 /app-emulation/docker-bench-security/files
parent7eea3cfaacc3251aaefa1fb0575927ded4036cfc (diff)
downloadgentoo-96085107a81f810116ae1ec0e2e267debce4c7c0.tar.gz
gentoo-96085107a81f810116ae1ec0e2e267debce4c7c0.tar.xz
app-emulation/docker-bench-security: new package
This utility checks for best practices around deploying docker containers Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-emulation/docker-bench-security/files')
-rw-r--r--app-emulation/docker-bench-security/files/docker-bench-security7
1 files changed, 7 insertions, 0 deletions
diff --git a/app-emulation/docker-bench-security/files/docker-bench-security b/app-emulation/docker-bench-security/files/docker-bench-security
new file mode 100644
index 00000000000..3a79d1b3af4
--- /dev/null
+++ b/app-emulation/docker-bench-security/files/docker-bench-security
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ $(id -u) -ne 0 ]; then
+ printf "%s\n" "This script must be run as root."
+ exit 1
+fi
+cd "$(dirname $0)/../lib/docker-bench-security"
+./docker-bench-security.sh