Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuperpoussin22 <vincent.nadal@orange.fr>2018-08-07 15:46:47 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-08-07 15:46:47 +0300
commit839977c3f655210940e442490a74c975f10acda3 (patch)
treecb5acd37afd6d03f50376dd3bfd3c6ec53a0879d
parente2545dc1e91ec434e71680343c3ba403806170b5 (diff)
Update helper_audit_dockerfile (#568)
To support LABEL maintainer="toto" and LABEL maintainer "toto" correct syntax from docker is LABEL maintainer="xxxxxxxxxxxxxxx"
-rw-r--r--include/helper_audit_dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/helper_audit_dockerfile b/include/helper_audit_dockerfile
index c6cec4a8..bf55dee9 100644
--- a/include/helper_audit_dockerfile
+++ b/include/helper_audit_dockerfile
@@ -94,11 +94,13 @@ fi
InsertSection "Basics"
- FIND=$(egrep "^MAINTAINER" ${AUDIT_FILE} | sed 's/ /:space:/g')
+ #FIND=$(egrep "^MAINTAINER" ${AUDIT_FILE} | sed 's/ /:space:/g')
+ FIND=$(egrep -i "*MAINTAINER" ${AUDIT_FILE} | sed 's/=/ /g' | cut -d'"' -f 2)
if [ "${FIND}" = "" ]; then
ReportWarning "dockerfile" "No maintainer found. Unclear who created this file."
else
- MAINTAINER=$(echo ${FIND} | sed 's/:space:/ /g' | awk '{ if($1=="MAINTAINER") { print }}')
+ #MAINTAINER=$(echo ${FIND} | sed 's/:space:/ /g' | awk '{ if($1=="MAINTAINER") { print }}')
+ MAINTAINER=$(echo ${FIND})
Display --indent 2 --text "Maintainer" --result "${MAINTAINER}"
fi