From dfa22ce4e5bc86f6889a43c7ed5d8c5654c14aa6 Mon Sep 17 00:00:00 2001 From: konsthol Date: Sun, 30 Apr 2023 21:00:19 +0300 Subject: [PATCH] Fixed Bug --- harden | 2 ++ 1 file changed, 2 insertions(+) diff --git a/harden b/harden index 7514202..28cd969 100755 --- a/harden +++ b/harden @@ -250,6 +250,8 @@ function kernelSecurityModuleInit { } function dockerInit { + # Add user to docker group to avoid using sudo when running docker commands + sudo usermod -aG docker "$USER" # Get all arguments passed to the function and store them in the dockerImages array local dockerImages=("$@") # Check if the dockerImages array is empty and return 0 if it is