mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Added new AddSystemGroup function
This commit is contained in:
parent
5729189349
commit
893e17d982
@ -20,6 +20,7 @@
|
|||||||
# Function Description
|
# Function Description
|
||||||
# ----------------------- -------------------------------------------------
|
# ----------------------- -------------------------------------------------
|
||||||
# AddHP Add Hardening points to plot a graph later
|
# AddHP Add Hardening points to plot a graph later
|
||||||
|
# AddSystemGroup Adds a system to a group
|
||||||
# CheckFilePermissions Check file permissions
|
# CheckFilePermissions Check file permissions
|
||||||
# CheckUpdates Determine if a new version of Lynis is available
|
# CheckUpdates Determine if a new version of Lynis is available
|
||||||
# counttests Count number of performed tests
|
# counttests Count number of performed tests
|
||||||
@ -50,6 +51,7 @@
|
|||||||
# ShowSymlinkPath Show a path behind a symlink
|
# ShowSymlinkPath Show a path behind a symlink
|
||||||
# ViewCategories Display tests categories
|
# ViewCategories Display tests categories
|
||||||
# logtext Log text strings to logfile, prefixed with date/time
|
# 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}"
|
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
|
# Check file permissions
|
||||||
# Parameter 1 is file/dir
|
# Parameter 1 is file/dir
|
||||||
# Result: FILE_NOT_FOUND | OK | BAD
|
# Result: FILE_NOT_FOUND | OK | BAD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user