mirror of https://github.com/CISOfy/lynis.git
Added new AddSystemGroup function
This commit is contained in:
parent
5729189349
commit
893e17d982
|
@ -20,6 +20,7 @@
|
|||
# Function Description
|
||||
# ----------------------- -------------------------------------------------
|
||||
# AddHP Add Hardening points to plot a graph later
|
||||
# AddSystemGroup Adds a system to a group
|
||||
# CheckFilePermissions Check file permissions
|
||||
# CheckUpdates Determine if a new version of Lynis is available
|
||||
# counttests Count number of performed tests
|
||||
|
@ -50,6 +51,7 @@
|
|||
# ShowSymlinkPath Show a path behind a symlink
|
||||
# ViewCategories Display tests categories
|
||||
# logtext Log text strings to logfile, prefixed with date/time
|
||||
# report Add string of data to report file
|
||||
#
|
||||
#################################################################################
|
||||
|
||||
|
@ -62,6 +64,19 @@
|
|||
logtext "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL}"
|
||||
}
|
||||
|
||||
|
||||
################################################################################
|
||||
# Name : AddSystemGroup
|
||||
# Description : Adds a system to a group, which can be used for categorizing
|
||||
# Returns : <nothing>
|
||||
################################################################################
|
||||
|
||||
AddSystemGroup()
|
||||
{
|
||||
report "system_group[]=$1"
|
||||
}
|
||||
|
||||
|
||||
# Check file permissions
|
||||
# Parameter 1 is file/dir
|
||||
# Result: FILE_NOT_FOUND | OK | BAD
|
||||
|
|
Loading…
Reference in New Issue