mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Show what profile is used when using --config
This commit is contained in:
parent
647b482c53
commit
ac5c98d76c
@ -143,6 +143,7 @@ unset LANG
|
|||||||
SHELL_IS_BUSYBOX=0
|
SHELL_IS_BUSYBOX=0
|
||||||
SHOW_PROGRAM_DETAILS=1
|
SHOW_PROGRAM_DETAILS=1
|
||||||
SHOW_REPORT=1
|
SHOW_REPORT=1
|
||||||
|
SHOW_SETTINGS_FILE=0
|
||||||
SKIPPED_TESTS_ROOTONLY=""
|
SKIPPED_TESTS_ROOTONLY=""
|
||||||
SSHKEYSCANBINARY=""
|
SSHKEYSCANBINARY=""
|
||||||
SSHKEYSCANFOUND=0
|
SSHKEYSCANFOUND=0
|
||||||
|
@ -97,6 +97,10 @@
|
|||||||
CHECK=1
|
CHECK=1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--config)
|
||||||
|
SHOW_SETTINGS_FILE=1
|
||||||
|
;;
|
||||||
|
|
||||||
# Cronjob support
|
# Cronjob support
|
||||||
--cronjob | --cron)
|
--cronjob | --cron)
|
||||||
CRONJOB=1;
|
CRONJOB=1;
|
||||||
@ -114,7 +118,7 @@
|
|||||||
# Display all available options with short alias
|
# Display all available options with short alias
|
||||||
--dump-options | --dumpoptions)
|
--dump-options | --dumpoptions)
|
||||||
OPTIONS="--auditor
|
OPTIONS="--auditor
|
||||||
--check-all_(-c) --cronjob_(--cron)
|
--check-all_(-c) --config --cronjob_(--cron)
|
||||||
--debug
|
--debug
|
||||||
--help_(-h)
|
--help_(-h)
|
||||||
--info
|
--info
|
||||||
|
6
lynis
6
lynis
@ -289,6 +289,12 @@
|
|||||||
ExitCustom 66
|
ExitCustom 66
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ${SHOW_SETTINGS_FILE} -eq 1 ]; then
|
||||||
|
echo "Settings file: ${PROFILE}"
|
||||||
|
echo ""; echo ""
|
||||||
|
ExitClean
|
||||||
|
fi
|
||||||
|
|
||||||
# Initialize and check profile file, auditor name, log file and report file
|
# Initialize and check profile file, auditor name, log file and report file
|
||||||
if [ ! -r ${PROFILE} ]; then echo "Fatal error: Can't open profile file (${PROFILE})"; exit 1; fi
|
if [ ! -r ${PROFILE} ]; then echo "Fatal error: Can't open profile file (${PROFILE})"; exit 1; fi
|
||||||
if [ "${AUDITORNAME}" = "" ]; then AUDITORNAME="[Unknown]"; fi
|
if [ "${AUDITORNAME}" = "" ]; then AUDITORNAME="[Unknown]"; fi
|
||||||
|
5
lynis.8
5
lynis.8
@ -1,4 +1,4 @@
|
|||||||
.TH Lynis 8 "10 September 2015" "1.19" "Unix System Administrator's Manual"
|
.TH Lynis 8 "2 February 2016" "1.20" "Unix System Administrator's Manual"
|
||||||
|
|
||||||
|
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
@ -58,6 +58,9 @@ each test to stdout. Additional information will be saved into a log file
|
|||||||
.IP
|
.IP
|
||||||
In case the outcome of a scan needs to be automated, use the report file.
|
In case the outcome of a scan needs to be automated, use the report file.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-config
|
||||||
|
Show which settings file or profile is being used, then quit.
|
||||||
|
.TP
|
||||||
.B \-\-cronjob
|
.B \-\-cronjob
|
||||||
Perform automatic scan with cron safe options (no colors, no questions, no
|
Perform automatic scan with cron safe options (no colors, no questions, no
|
||||||
breaks).
|
breaks).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user