From c88953a81531dc05d049077763d1c7151ce55651 Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Tue, 8 Oct 2019 20:31:35 +0300 Subject: [PATCH] Test SINT-7010 in macOS only --- db/tests.db | 2 +- include/tests_system_integrity | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/tests.db b/db/tests.db index b43cef54..cbe892b9 100644 --- a/db/tests.db +++ b/db/tests.db @@ -363,7 +363,7 @@ SHLL-6202:test:security:shells:FreeBSD:Check console TTYs: SHLL-6211:test:security:shells::Checking available and valid shells: SHLL-6220:test:security:shells::Checking available and valid shells: SHLL-6230:test:security:shells::Perform umask check for shell configurations: -SINT-7010:test:security:system_integrity::System Integrity Status: +SINT-7010:test:security:system_integrity:MacOS:System Integrity Status: SNMP-3302:test:security:snmp::Check for running SNMP daemon: SNMP-3304:test:security:snmp::Check SNMP daemon file location: SNMP-3306:test:security:snmp::Check SNMP communities: diff --git a/include/tests_system_integrity b/include/tests_system_integrity index a02f84fb..8b6910c1 100644 --- a/include/tests_system_integrity +++ b/include/tests_system_integrity @@ -31,7 +31,7 @@ ################################################################################# # if [ -x ${ROOTDIR}/usr/bin/csrutil ]; then PREQS_MET="YES"; else PREQS_MET="NO"; SKIPREASON="No CSrutil binary found"; fi - Register --test-no SINT-7010 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight H --network NO --category security --description "System Integrity Status" + Register --test-no SINT-7010 --os MacOS --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight H --network NO --category security --description "System Integrity Status" if [ ${SKIPTEST} -eq 0 ]; then if ${ROOTDIR}usr/bin/csrutil status | ${GREPBINARY} -sq enabled ; then Display --indent 2 --text "- System Integrity Protection (status)" --result "${STATUS_OK}" --color GREEN