Skip to content

[Bug] 1.1.2 Users list empty (broken by filtration) #566

Description

@OdinVex

The following is in docker-bench-security/tests/1_host_configuration.sh:

  docker_users=$(grep 'docker' /etc/group)
  if command -v getent >/dev/null 2>&1; then
    docker_users=$(getent group docker)
  fi
  docker_users=$(printf "%s" "$docker_users" | awk -F: '{print $4}')

docker_users=$(grep 'docker' /etc/group)=>docker:x:110:
docker_users=$(getent group docker)=>docker:x:110:
docker_users=$(printf "%s" "$docker_users" | awk -F: '{print $4}')=>``

The last line destroys the content of docker_users.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions