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>2018-07-25 13:25:00 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-07-25 13:25:00 +0300
commit7181b943826d0e4dfa8ff65b19006a8b153b573a (patch)
treea04bf256c23781167757660456f17c86111a6f0b
parent126608e1d860662c828d622ef8434f82487c523d (diff)
[KRNL-5677] Limit PAE and no-execute test to AMD64 hardware only
-rw-r--r--include/tests_kernel5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/tests_kernel b/include/tests_kernel
index 2e9067ea..2b3b7dc3 100644
--- a/include/tests_kernel
+++ b/include/tests_kernel
@@ -98,11 +98,12 @@
#
#################################################################################
#
-
# Test : KRNL-5677
# Description : Check CPU options and support (PAE, No eXecute, eXecute Disable)
# More info : pae and nx bit are both visible on AMD and Intel CPU's if supported
- Register --test-no KRNL-5677 --os Linux --weight L --network NO --category security --description "Check CPU options and support"
+
+ if [ "${HARDWARE}" = "x86_64" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
+ Register --test-no KRNL-5677 --preqs-met "${PREQS_MET}" --os Linux --weight L --network NO --category security --description "Check CPU options and support"
if [ ${SKIPTEST} -eq 0 ]; then
Display --indent 2 --text "- Checking CPU support (NX/PAE)"
LogText "Test: Checking /proc/cpuinfo"