mirror of https://github.com/CISOfy/lynis.git
Merge pull request #115 from alobodzinski/master
Change text and add account test for OpenBSD
This commit is contained in:
commit
44752440e8
|
@ -43,6 +43,25 @@
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
#
|
||||||
|
# Test : ACCT-2760
|
||||||
|
# Description : Check availability OpenBSD accounting data
|
||||||
|
Register --test-no ACCT-2760 --os OpenBSD --weight L --network NO --description "Check for available OpenBSD accounting information"
|
||||||
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
if [ -f /var/account/acct ]; then
|
||||||
|
Display --indent 2 --text "- Checking accounting information" --result OK --color GREEN
|
||||||
|
LogText "Result: /var/account/acct available"
|
||||||
|
AddHP 3 3
|
||||||
|
else
|
||||||
|
Display --indent 2 --text "- Checking accounting information" --result "NOT FOUND" --color YELLOW
|
||||||
|
LogText "Result: No accounting information available"
|
||||||
|
LogText "Remark: Possibly there is another location where the accounting data is stored"
|
||||||
|
ReportSuggestion ${TEST_NO} "Enable process accounting"
|
||||||
|
AddHP 2 3
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Test : ACCT-9622
|
# Test : ACCT-9622
|
||||||
# Description : Check availability Linux accounting data
|
# Description : Check availability Linux accounting data
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#
|
#
|
||||||
# Test : PRNT-2302
|
# Test : PRNT-2302
|
||||||
# Description : Check printcap file consistency
|
# Description : Check printcap file consistency
|
||||||
Register --test-no PRNT-2302 --os FreeBSD --weight L --network NO --description "Check for available accounting information"
|
Register --test-no PRNT-2302 --os FreeBSD --weight L --network NO --description "Check for printcap consistency"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
LogText "Test: Searching /usr/sbin/chkprintcap"
|
LogText "Test: Searching /usr/sbin/chkprintcap"
|
||||||
if [ ! -f /usr/sbin/chkprintcap ]; then
|
if [ ! -f /usr/sbin/chkprintcap ]; then
|
||||||
|
|
Loading…
Reference in New Issue