mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-10-22 14:16:53 +00:00
Replace netstat by ss
ss(8) is a modern replacement for netstat(8). The former is slowly replacing the latter in major Linux distributions, which makes it necessary to switch at some point. This addresses #278. Signed-off-by: Karol Babioch <kbabioch@suse.de>
This commit is contained in:
parent
aae04fb75e
commit
997ce7330e
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ myname=$(basename "${this_path}") ## file name of this script.
|
|||
export PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin/
|
||||
|
||||
# Check for required program(s)
|
||||
req_progs='awk docker grep netstat stat'
|
||||
req_progs='awk docker grep ss stat'
|
||||
for p in $req_progs; do
|
||||
command -v "$p" >/dev/null 2>&1 || { printf "%s command not found.\n" "$p"; exit 1; }
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue