mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Support remote users and groups for group check. Fixes #104
Grepping /etc/group discards users and grous coming from NIS, LDAP, AD. Use getent group which covers all. Signed-off-by: Andreas Stieger <astieger@suse.com>
This commit is contained in:
parent
93439abcd3
commit
e285c472d6
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ fi
|
|||
|
||||
# 1.7
|
||||
check_1_7="1.7 - Only allow trusted users to control Docker daemon"
|
||||
docker_users=$(grep docker /etc/group)
|
||||
docker_users=$(getent group docker)
|
||||
info "$check_1_7"
|
||||
for u in $docker_users; do
|
||||
info " * $u"
|
||||
|
|
Loading…
Reference in a new issue