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:
authorMichael Boelen <michael.boelen@cisofy.com>2019-03-04 14:33:25 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-03-04 14:33:25 +0300
commitff6446a5bceb0229bc4a6d81586a935103327f93 (patch)
tree4a89d12c91267081b1329f57254711f7e270b443 /include/helper_show
parentf7a291a62f2e4747eb7624f06a0c34581cfb9f3f (diff)
Added 'show eol' command
Diffstat (limited to 'include/helper_show')
-rw-r--r--include/helper_show14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/helper_show b/include/helper_show
index cb154c68..6e0738e6 100644
--- a/include/helper_show
+++ b/include/helper_show
@@ -32,13 +32,14 @@ COMMANDS="audit configure show update upload-only"
HELPERS="audit configure show update"
OPTIONS="--auditor\n--cronjob (--cron)\n--debug\n--developer\n--help (-h)\n--license-key\n--log-file\n--manpage (--man)\n--no-colors\n--no-log\n--pentest\n--profile\n--plugin-dir\n--quick (-Q)\n--quiet (-q)\n--report-file\n--reverse-colors\n--skip-plugins\n--tests\n--tests-from-category\n--tests-from-group\n--upload\n--verbose\n--version (-V)\n--wait\n--warnings-only"
-SHOW_ARGS="categories changelog commands dbdir details environment groups help hostids includedir language license logfile man options os pidfile plugindir profiles release releasedate report settings tests version workdir"
+SHOW_ARGS="categories changelog commands dbdir details environment eol groups help hostids includedir language license logfile man options os pidfile plugindir profiles release releasedate report settings tests version workdir"
SHOW_HELP="lynis show ${BROWN}categories${NORMAL} (display test categories)
lynis show ${BROWN}changelog${NORMAL} ${GRAY}[version]${NORMAL} (release details)
lynis show ${BROWN}commands${NORMAL} (all available commands)
lynis show ${BROWN}dbdir${NORMAL} (database directory)
lynis show ${BROWN}details${NORMAL} (display test details from log file)
lynis show ${BROWN}environment${NORMAL} (hardware, virtual machine, or container type)
+lynis show ${BROWN}eol${NORMAL} (OS end-of-life status)
lynis show ${BROWN}groups${NORMAL} (test groups)
lynis show ${BROWN}help${NORMAL} (detailed information about arguments)
lynis show ${BROWN}hostids${NORMAL} (unique IDs for this system)
@@ -242,6 +243,17 @@ if [ $# -gt 0 ]; then
${ECHOCMD} "virtual-machine=0"
fi
;;
+ "eol")
+ if [ ${EOL} -eq 0 ]; then
+ ${ECHOCMD} "OS end-of-life: No"
+ elif [ ${EOL} -eq 1 ]; then
+ ${ECHOCMD} "OS end-of-life: Yes"
+ elif [ ${EOL} -eq 255 ]; then
+ ${ECHOCMD} "OS end-of-life: Not tested"
+ else
+ ${ECHOCMD} "OS end-of-life: Unknown"
+ fi
+ ;;
"groups")
ViewGroups
;;