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>2016-07-24 18:22:00 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-24 18:22:00 +0300
commit2f4c854ba7790d1c8fb8c664daea6c971f18aa72 (patch)
treec3eed34233a165d56df1173b3f08e047b47ae47e /include/parameters
parent0b5af4ed387ea0582181e56a56609c4a633cb91f (diff)
Rename of categories, introduction of groups
Diffstat (limited to 'include/parameters')
-rw-r--r--include/parameters30
1 files changed, 18 insertions, 12 deletions
diff --git a/include/parameters b/include/parameters
index f2840014..dd66d5bd 100644
--- a/include/parameters
+++ b/include/parameters
@@ -155,12 +155,12 @@
# Perform tests (deprecated, use audit system)
--check-all | --checkall | -c)
- # echo "Usage of option -c is deprecated. Please use: lynis audit system [options]"
+ DisplayToolTip "Usage of option -c is deprecated. Please use: lynis audit system [options]"
CHECK=1
;;
# Cronjob support
- --cronjob | --cron)
+ --cron-job | --cronjob | --cron)
CRONJOB=1
CHECK=1; QUICKMODE=1; COLORS=0; NEVERBREAK=1 # Use some defaults (-c, -Q, no colors)
RemoveColors
@@ -189,9 +189,9 @@
--pentest --profile --plugins-dir
--quiet_(-q) --quick_(-Q)
--report-file --reverse-colors
- --tests --tests-category
+ --tests
--upload
- --version_(-V) --view-categories"
+ --version_(-V)"
for I in ${OPTIONS}; do
echo "${I}" | tr '_' ' '
done
@@ -298,10 +298,16 @@
TESTS_TO_PERFORM=$1
;;
- # Scan one or more categories only
- --tests-category)
+ # Scan one or more tests from just one category (e.g. security)
+ --tests-from-category)
shift
- TESTS_CATEGORY_TO_PERFORM=$1
+ TEST_CATEGORY_TO_CHECK=$1
+ ;;
+
+ # Scan one or more tests from just on group
+ --tests-from-group)
+ shift
+ TEST_GROUP_TO_CHECK=$1
;;
# Lynis Enterprise: upload data to central node
@@ -319,11 +325,6 @@
exit 0
;;
- --view-categories | --list-categories | --show-categories)
- ViewCategories
- exit 0
- ;;
-
# View man page
--view-manpage | --man-page | --manpage | --man)
if [ -f lynis.8 ]; then
@@ -343,6 +344,11 @@
QUIET=1
;;
+ --tests-category | --tests-categories | --view-categories | --list-categories | --show-categories)
+ ShowError "Deprecated option"
+ ExitFatal
+ ;;
+
# Drop out when using wrong option(s)
*)
# Wrong option used, we bail out later