mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Changed custom URLs for hardening tips
This commit is contained in:
parent
4d0511f62f
commit
2aa9b9a9b1
@ -303,10 +303,13 @@ permdir:/root/.ssh:rwx------:root:-:WARN:
|
|||||||
#config:skip_upgrade_test:yes:
|
#config:skip_upgrade_test:yes:
|
||||||
|
|
||||||
# The URL prefix and append to URL's for your custom tests
|
# The URL prefix and append to URL's for your custom tests
|
||||||
# Link will be build with: {control_url_prepend}CONTROL-ID{control_url_append}
|
# Link will be build with: {control_url_protocol}://{control_url_prepend}CONTROL-ID{control_url_append}
|
||||||
#config:control_url_prepend:https://cisofy.com/control/:
|
#config:control_url_protocol:https:
|
||||||
|
#config:control_url_prepend:cisofy.com/control/:
|
||||||
#config:control_url_append:/:
|
#config:control_url_append:/:
|
||||||
#config:custom_url_prepend:https://your-domain.example.org/control-info/:
|
# The URL prefix and append to URL's for your custom tests
|
||||||
|
#config:custom_url_protocol:https:
|
||||||
|
#config:custom_url_prepend:ayour-domain.example.org/control-info/:
|
||||||
#config:custom_url_append:/:
|
#config:custom_url_append:/:
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
@ -63,9 +63,11 @@ unset LANG
|
|||||||
COMPRESSED_UPLOADS=0
|
COMPRESSED_UPLOADS=0
|
||||||
CONTROL_URL_APPEND=""
|
CONTROL_URL_APPEND=""
|
||||||
CONTROL_URL_PREPEND=""
|
CONTROL_URL_PREPEND=""
|
||||||
|
CONTROL_URL_PROTOCOL=""
|
||||||
CSUMBINARY=""
|
CSUMBINARY=""
|
||||||
CUSTOM_URL_APPEND=""
|
CUSTOM_URL_APPEND=""
|
||||||
CUSTOM_URL_PREPEND=""
|
CUSTOM_URL_PREPEND=""
|
||||||
|
CUSTOM_URL_PROTOCOL=""
|
||||||
DISCOVERED_BINARIES=""
|
DISCOVERED_BINARIES=""
|
||||||
DOCKER_DAEMON_RUNNING=0
|
DOCKER_DAEMON_RUNNING=0
|
||||||
FILEVALUE=""
|
FILEVALUE=""
|
||||||
|
@ -58,6 +58,11 @@
|
|||||||
CONTROL_URL_PREPEND="${VALUE}"
|
CONTROL_URL_PREPEND="${VALUE}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Protocol to use for control information link
|
||||||
|
control_url_protocol)
|
||||||
|
CONTROL_URL_PROTOCOL="${VALUE}"
|
||||||
|
;;
|
||||||
|
|
||||||
# Append something to URL for control information (only applies to CUST-*)
|
# Append something to URL for control information (only applies to CUST-*)
|
||||||
custom_url_append)
|
custom_url_append)
|
||||||
CUSTOM_URL_APPEND="${VALUE}"
|
CUSTOM_URL_APPEND="${VALUE}"
|
||||||
@ -68,6 +73,11 @@
|
|||||||
CUSTOM_URL_PREPEND="${VALUE}"
|
CUSTOM_URL_PREPEND="${VALUE}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Protocol to use for control information link
|
||||||
|
custom_url_protocol)
|
||||||
|
CUSTOM_URL_PROTOCOL="${VALUE}"
|
||||||
|
;;
|
||||||
|
|
||||||
# Do not check security repository in sources.list (Debian/Ubuntu)
|
# Do not check security repository in sources.list (Debian/Ubuntu)
|
||||||
debian_skip_security_repository)
|
debian_skip_security_repository)
|
||||||
OPTION_DEBIAN_SKIP_SECURITY_REPOSITORY="${VALUE}"
|
OPTION_DEBIAN_SKIP_SECURITY_REPOSITORY="${VALUE}"
|
||||||
|
@ -96,9 +96,11 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
if [ "${CONTROL_URL_PREPEND}" = "" ]; then CONTROL_URL_PREPEND="https://cisofy.com/controls/"; fi
|
if [ "${CONTROL_URL_PROTOCOL}" = "" ]; then CONTROL_URL_PROTOCOL="https"; fi
|
||||||
|
if [ "${CONTROL_URL_PREPEND}" = "" ]; then CONTROL_URL_PREPEND="cisofy.com/controls/"; fi
|
||||||
if [ "${CONTROL_URL_APPEND}" = "" ]; then CONTROL_URL_APPEND="/"; fi
|
if [ "${CONTROL_URL_APPEND}" = "" ]; then CONTROL_URL_APPEND="/"; fi
|
||||||
if [ "${CUSTOM_URL_PREPEND}" = "" ]; then CUSTOM_URL_PREPEND="https://your-domain.example.org/controls/"; fi
|
if [ "${CUSTOM_URL_PROTOCOL}" = "" ]; then CUSTOM_URL_PROTOCOL="https"; fi
|
||||||
|
if [ "${CUSTOM_URL_PREPEND}" = "" ]; then CUSTOM_URL_PREPEND="your-domain.example.org/controls/"; fi
|
||||||
if [ "${CUSTOM_URL_APPEND}" = "" ]; then CUSTOM_URL_APPEND="/"; fi
|
if [ "${CUSTOM_URL_APPEND}" = "" ]; then CUSTOM_URL_APPEND="/"; fi
|
||||||
|
|
||||||
# Show warnings from logfile
|
# Show warnings from logfile
|
||||||
@ -115,9 +117,9 @@
|
|||||||
IS_CUSTOM=`echo ${ADDLINK} | grep "^CUST"`
|
IS_CUSTOM=`echo ${ADDLINK} | grep "^CUST"`
|
||||||
echo " ${WHITE}- ${SHOWWARNING}${NORMAL}"
|
echo " ${WHITE}- ${SHOWWARNING}${NORMAL}"
|
||||||
if [ "${IS_CUSTOM}" = "" ]; then
|
if [ "${IS_CUSTOM}" = "" ]; then
|
||||||
echo " ${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}"
|
echo " ${CONTROL_URL_PROTOCOL}://${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}"
|
||||||
else
|
else
|
||||||
echo " ${CUSTOM_URL_PREPEND}${ADDLINK}${CUSTOM_URL_APPEND}"
|
echo " ${CUSTOM_URL_PROTOCOL}://${CUSTOM_URL_PREPEND}${ADDLINK}${CUSTOM_URL_APPEND}"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
@ -139,9 +141,9 @@
|
|||||||
echo " - ${SHOWSUGGESTION}"
|
echo " - ${SHOWSUGGESTION}"
|
||||||
if [ ! "${DETAILS}" = "-" ]; then echo " - Details: ${DETAILS}"; fi
|
if [ ! "${DETAILS}" = "-" ]; then echo " - Details: ${DETAILS}"; fi
|
||||||
if [ "${IS_CUSTOM}" = "" ]; then
|
if [ "${IS_CUSTOM}" = "" ]; then
|
||||||
echo " ${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}"
|
echo " ${CONTROL_URL_PROTOCOL}://${CONTROL_URL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}"
|
||||||
else
|
else
|
||||||
echo " ${CUSTOM_URL_PREPEND}${ADDLINK}${CUSTOM_URL_APPEND}"
|
echo " ${CUSTOM_URL_PROTOCOL}://${CUSTOM_URL_PREPEND}${ADDLINK}${CUSTOM_URL_APPEND}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user