Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-06-18 12:14:01 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-06-18 12:14:01 +0300
commit983e293eb157131ca5e085e4927ea5fc220edc73 (patch)
treecc5e8bea4af5cfa53f57a73d2c61357f47165857 /include/tests_mac_frameworks
parent9c093f7a97fb0b9593a303ef7394c3bc5dea99b2 (diff)
Replaced text strings to allow translations
Diffstat (limited to 'include/tests_mac_frameworks')
-rw-r--r--include/tests_mac_frameworks34
1 files changed, 17 insertions, 17 deletions
diff --git a/include/tests_mac_frameworks b/include/tests_mac_frameworks
index 6ee373de..c4150611 100644
--- a/include/tests_mac_frameworks
+++ b/include/tests_mac_frameworks
@@ -34,11 +34,11 @@
if [ "${AASTATUSBINARY}" = "" ]; then
APPARMORFOUND=0
LogText "Result: aa-status binary not found, AppArmor not installed"
- Display --indent 2 --text "- Checking presence AppArmor" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking presence AppArmor" --result "${STATUS_NOT_FOUND}" --color WHITE
else
APPARMORFOUND=1
LogText "Result: aa-status binary found, AppArmor is installed"
- Display --indent 2 --text "- Checking presence AppArmor" --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking presence AppArmor" --result "${STATUS_FOUND}" --color GREEN
fi
fi
#
@@ -60,22 +60,22 @@
if [ ${FIND} -eq 0 ]; then
MAC_FRAMEWORK_ACTIVE=1
LogText "Result: AppArmor is enabled and a policy is loaded"
- Display --indent 4 --text "- Checking AppArmor status" --result "ENABLED" --color GREEN
+ Display --indent 4 --text "- Checking AppArmor status" --result "${STATUS_ENABLED}" --color GREEN
elif [ ${FIND} -eq 4 ]; then
LogText "Result: Can not determine status, most likely due to lacking permissions"
- Display --indent 4 --text "- Checking AppArmor status" --result "UNKNOWN" --color RED
+ Display --indent 4 --text "- Checking AppArmor status" --result "${STATUS_UNKNOWN}" --color RED
elif [ ${FIND} -eq 3 ]; then
LogText "Result: Can not check control files"
- Display --indent 4 --text "- Checking AppArmor status" --result "UNKNOWN" --color RED
+ Display --indent 4 --text "- Checking AppArmor status" --result "${STATUS_UNKNOWN}" --color RED
elif [ ${FIND} -eq 2 ]; then
LogText "Result: AppArmor is enabled, but no policy is loaded"
ReportSuggestion ${TEST_NO} "Disable AppArmor or load a policy"
Display --indent 4 --text "- Checking AppArmor status" --result "NON-ACTIVE" --color GREEN
elif [ ${FIND} -eq 1 ]; then
LogText "Result: AppArmor is disabled"
- Display --indent 4 --text "- Checking AppArmor status" --result "DISABLED" --color YELLOW
+ Display --indent 4 --text "- Checking AppArmor status" --result "${STATUS_DISABLED}" --color YELLOW
else
- Display --indent 4 --text "- Checking AppArmor status" --result "UNKNOWN" --color RED
+ Display --indent 4 --text "- Checking AppArmor status" --result "${STATUS_UNKNOWN}" --color RED
ReportException "${TEST_NO}:1" "Invalid or unknown AppArmor status detected"
fi
fi
@@ -90,10 +90,10 @@
LogText "Test: checking if we have sestatus binary"
if [ ! "${SESTATUSBINARY}" = "" ]; then
LogText "Result: found sestatus binary (${SESTATUSBINARY})"
- Display --indent 2 --text "- Checking presence SELinux" --result "FOUND" --color GREEN
+ Display --indent 2 --text "- Checking presence SELinux" --result "${STATUS_FOUND}" --color GREEN
else
LogText "Result: sestatus binary NOT found"
- Display --indent 2 --text "- Checking presence SELinux" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking presence SELinux" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -111,7 +111,7 @@
LogText "Result: SELinux framework is enabled"
Report "selinux_status=1"
SELINUXFOUND=1
- Display --indent 4 --text "- Checking SELinux status" --result "ENABLED" --color GREEN
+ Display --indent 4 --text "- Checking SELinux status" --result "${STATUS_ENABLED}" --color GREEN
FIND=`${SESTATUSBINARY} | grep "^Current mode" | awk '{ print $3 }'`
Report "selinux_mode=${FIND}"
FIND2=`${SESTATUSBINARY} | grep "^Mode from config file" | awk '{ print $5 }'`
@@ -119,16 +119,16 @@
LogText "Result: mode configured in config file is ${FIND2}"
if [ "${FIND}" = "${FIND2}" ]; then
LogText "Result: Current SELinux mode is the same as in config file."
- Display --indent 6 --text "- Checking current mode and config file" --result "OK" --color GREEN
+ Display --indent 6 --text "- Checking current mode and config file" --result "${STATUS_OK}" --color GREEN
else
LogText "Result: Current SELinux mode (${FIND}) is NOT the same as in config file (${FIND2})."
ReportWarning ${TEST_NO} "M" "Current SELinux mode is different from config file (current: ${FIND}, config file: ${FIND2})"
- Display --indent 6 --text "- Checking current mode and config file" --result "WARNING" --color RED
+ Display --indent 6 --text "- Checking current mode and config file" --result "${STATUS_WARNING}" --color RED
fi
Display --indent 8 --text "Current SELinux mode: ${FIND}"
else
LogText "Result: SELinux framework is disabled"
- Display --indent 4 --text "- Checking SELinux status" --result "DISABLED" --color YELLOW
+ Display --indent 4 --text "- Checking SELinux status" --result "${STATUS_DISABLED}" --color YELLOW
fi
fi
#
@@ -150,10 +150,10 @@
fi
fi
if [ ${GRSEC_FOUND} -eq 1 ]; then
- Display --indent 2 --text "- Checking presence grsecurity" --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking presence grsecurity" --result "${STATUS_FOUND}" --color GREEN
AddHP 3 3
else
- Display --indent 2 --text "- Checking presence grsecurity" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking presence grsecurity" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -164,11 +164,11 @@
Register --test-no MACF-6290 --weight L --network NO --description "Check for implemented MAC framework"
if [ ${SKIPTEST} -eq 0 ]; then
if [ ${MAC_FRAMEWORK_ACTIVE} -eq 1 ]; then
- Display --indent 2 --text "- Checking for implemented MAC framework" --result OK --color GREEN
+ Display --indent 2 --text "- Checking for implemented MAC framework" --result "${STATUS_OK}" --color GREEN
AddHP 3 3
LogText "Result: found implemented MAC framework"
else
- Display --indent 2 --text "- Checking for implemented MAC framework" --result NONE --color YELLOW
+ Display --indent 2 --text "- Checking for implemented MAC framework" --result "${STATUS_NONE}" --color YELLOW
AddHP 2 3
LogText "Result: found no implemented MAC framework"
fi