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-08-21 14:41:23 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-08-21 14:41:23 +0300
commitee18e76e976eef981a36a702b6ee0504f0cce645 (patch)
treefb42518b0249377433d1b177f195036710c95059 /include/parameters
parenta7145688423c6a36b9394a0a8162b3dd59e61158 (diff)
Preparations for forensics scan mode
Diffstat (limited to 'include/parameters')
-rw-r--r--include/parameters63
1 files changed, 27 insertions, 36 deletions
diff --git a/include/parameters b/include/parameters
index 49c0f495..483f2193 100644
--- a/include/parameters
+++ b/include/parameters
@@ -247,29 +247,9 @@
DEVELOPER_MODE=1
;;
- # Display all available options with short alias
- --dump-options | --dumpoptions)
- OPTIONS="--auditor
- --check-all_(-c) --cronjob_(--cron)
- --debug
- --help_(-h)
- --info
- --license-key --log-file
- --manpage_(--man)
- --no-colors --no-log
- --pentest --profile --plugins-dir
- --quiet_(-q) --quick_(-Q)
- --report-file --reverse-colors
- --tests
- --upload
- --version_(-V)"
- for ITEM in ${OPTIONS}; do
- echo "${ITEM}" | tr '_' ' '
- done
- echo "This option is deprecated"
- echo "Use: lynis show options"
-
- ExitClean
+ # Enable forensics mode (gather information from a mounted directory)
+ --forensics)
+ FORENSICS=1
;;
# View help
@@ -277,19 +257,6 @@
VIEWHELP=1
;;
- # View program/database information
- --check-update | --check-updates | --info)
- echo "This option is deprecated"
- echo "Use: lynis update info"
- ExitClean
- ;;
-
- # License key for Lynis Enterprise
- --license-key)
- shift
- LICENSE_KEY=$1
- ;;
-
# Adjust default logfile location
--logfile | --log-file)
shift
@@ -455,6 +422,30 @@
exit 1
;;
+ # Soon to be deprecated options
+
+ # View program/database information
+ --check-update | --check-updates | --info)
+ echo "This option is deprecated"
+ echo "Use: lynis update info"
+ ExitFatal
+ ;;
+
+ # Display all available options with short alias
+ --dump-options | --dumpoptions)
+ echo "This option is deprecated"
+ echo "Use: lynis show options"
+ ExitFatal
+ ;;
+
+ # License key for Lynis Enterprise
+ --license-key)
+ echo "This option is deprecated"
+ echo "Define a license key in /etc/lynis/custom.prf"
+ ExitFatal
+ ;;
+
+
# Drop out when using wrong option(s)
*)
# Wrong option used, we bail out later