Debian Codegraph @

tests/mitre/test_mitre_linux_probes.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 # Author:
4 # Peter Vrabec, <[email protected]>
5 # Daniel Kopecek <[email protected]>
6
7
8 . $builddir/tests/test_common.sh
9 . $srcdir/test_mitre_common.sh
10
11 # Test Cases.
12 test_init
13
14 test_run "linux-def_partition_test.xml" test_mitre linux-def_partition_test.xml "true"
15 test_run "linux-def_rpminfo_test.xml" test_mitre linux-def_rpminfo_test.xml "true"
16 test_run "linux-def_rpmverify_test.xml" test_mitre linux-def_rpmverify_test.xml "true"
17 # Fedora 18 and RHEL-7 - no allow_console_login
18 if [[ ( ${DISTRO#Fedora} != "$DISTRO" && $DISTRO_RELEASE -lt 18 ) || \
19 ( ${DISTRO#Red Hat} != "$DISTRO" && $DISTRO_RELEASE -lt 7 ) ]]; then
20 test_run "linux-def_selinuxboolean_test.xml" test_mitre linux-def_selinuxboolean_test.xml "true"
21 fi
22
23 if [ $SELINUX_ENABLED -eq 0 ]; then
24 test_run "linux-def_selinuxsecuritycontext_test.xml" test_mitre linux-def_selinuxsecuritycontext_test.xml "true"
25 fi
26
27 test_run "linux-def_inetlisteningservers_test.xml" test_mitre linux-def_inetlisteningservers_test.xml "true"
28 # Unsupported objects on Fedora
29 #test_run "linux-def_slackwarepkginfo_test.xml" test_mitre linux-def_slackwarepkginfo_test.xml "unknown"
30
31 if [[ $DISTRO_NAME == "Debian" ]]; then
32 test_run "linux-def_dpkginfo_test.xml" test_mitre linux-def_dpkginfo_test.xml "true"
33 fi
34
35 test_exit cleanup_mitre