mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Support for allow-auto-purge option in profiles
This commit is contained in:
parent
c453331265
commit
e4cb190237
@ -460,6 +460,9 @@ permdir:/root/.ssh:rwx------:root:-:WARN:
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
|
# Allow this system to be purged when it is outdated (default: not defined).
|
||||||
|
# This is useful for ephemeral systems which are short-lived.
|
||||||
|
#allow-auto-purge=yes
|
||||||
|
|
||||||
# Proxy settings
|
# Proxy settings
|
||||||
# Protocol (http, https, socks5)
|
# Protocol (http, https, socks5)
|
||||||
|
@ -45,6 +45,16 @@
|
|||||||
|
|
||||||
case ${OPTION} in
|
case ${OPTION} in
|
||||||
|
|
||||||
|
# Is Lynis Enterprise allowed to purge this system when it is becomes outdated?
|
||||||
|
allow-auto-purge)
|
||||||
|
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)$")
|
||||||
|
if [ ! -z "${FIND}" ]; then
|
||||||
|
Report "allow-auto-purge=1"
|
||||||
|
else
|
||||||
|
Report "allow-auto-purge=0"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
# Define which compliance standards are enabled
|
# Define which compliance standards are enabled
|
||||||
# For this to work, the Enterprise plugins are needed
|
# For this to work, the Enterprise plugins are needed
|
||||||
compliance_standards | check-compliance)
|
compliance_standards | check-compliance)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user