mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-31 06:22:32 +01:00
pgrep docker daemon
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
c28ce3468e
commit
9209888516
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ contains() {
|
|||
get_command_line_args() {
|
||||
PROC="$1"
|
||||
|
||||
for PID in $(pgrep -x -o "$PROC")
|
||||
for PID in $(pgrep -f -o "$PROC")
|
||||
do
|
||||
tr "\0" " " < /proc/"$PID"/cmdline
|
||||
done
|
||||
|
|
|
@ -5,7 +5,7 @@ info "2 - Docker Daemon Configuration"
|
|||
|
||||
# 2.1
|
||||
check_2_1="2.1 - Do not use lxc execution driver"
|
||||
get_command_line_args docker | grep lxc >/dev/null 2>&1
|
||||
get_command_line_args "docker daemon" | grep lxc >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
warn "$check_2_1"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue