From: Daniel Jurgens <danielj@xxxxxxxxxxxx> Implements new tests for Infiniband pkeys and endports. Because infiniband isn't widely used, and when it is the configuration is site specific, configuration files are used to enable the tests and set environment specific settings. When the tests are disable they always show as passed. If enabled, the tests require correstponding updates to selinux, refpolicy, and the linux kernel. --- v1: - Synchronize intefrace names with changes to refpolicy. - Change tests to not assume that default pkey is labeled. - See patches v1 notes for more detail. Daniel Jurgens (2): selinux-testsuite: Infiniband pkey tests selinux-testsuite: Infiniband endport tests README | 14 +++ policy/Makefile | 3 +- policy/test_ibendport.te | 35 +++++++ policy/test_ibpkey.te | 25 +++++ tests/Makefile | 8 +- tests/infiniband_endport/ibendport_test.conf | 14 +++ tests/infiniband_endport/test | 49 +++++++++ tests/infiniband_pkey/Makefile | 7 ++ tests/infiniband_pkey/create_modify_qp.c | 144 +++++++++++++++++++++++++++ tests/infiniband_pkey/ibpkey_test.conf | 18 ++++ tests/infiniband_pkey/test | 84 ++++++++++++++++ 11 files changed, 397 insertions(+), 4 deletions(-) create mode 100644 policy/test_ibendport.te create mode 100644 policy/test_ibpkey.te create mode 100644 tests/infiniband_endport/ibendport_test.conf create mode 100644 tests/infiniband_endport/test create mode 100644 tests/infiniband_pkey/Makefile create mode 100644 tests/infiniband_pkey/create_modify_qp.c create mode 100644 tests/infiniband_pkey/ibpkey_test.conf create mode 100755 tests/infiniband_pkey/test -- 2.12.2