diff options
author | mboelen <michael@cisofy.com> | 2015-05-13 15:45:50 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-05-13 15:45:50 +0300 |
commit | 893e17d982bb8072b5a49d3931b2b99e587a6752 (patch) | |
tree | 3d59b5178fe25ba055d0f82b0d2abea6e90f0d2d | |
parent | 5729189349e1f532f6c81571248b6174a8eef613 (diff) |
Added new AddSystemGroup function
-rw-r--r-- | include/functions | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/functions b/include/functions index 04ccfe13..e412d7c4 100644 --- a/include/functions +++ b/include/functions @@ -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 |