All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Selinux tests for Infinfiband
@ 2017-05-30 16:34 Dan Jurgens
  2017-05-30 16:34 ` [PATCH v2 1/2] selinux-testsuite: Infiniband pkey tests Dan Jurgens
  2017-05-30 16:34 ` [PATCH v2 2/2] selinux-testsuite: Infiniband endport tests Dan Jurgens
  0 siblings, 2 replies; 15+ messages in thread
From: Dan Jurgens @ 2017-05-30 16:34 UTC (permalink / raw)
  To: selinux, sds, paul

From: Daniel Jurgens <danielj@mellanox.com>

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.

v2:
- Use ifdefs around new corenet_ib* interfaces.
- Exclude endport policy if infiniband_endport class is undefined.
- Use a stub makefile in tests/infinband_endport vs a new SUBDIRS_NO_MAKE
  list in the makefile.
- Style cleanup in new pkey test program.
- Updated README for new dependency.

Daniel Jurgens (2):
  selinux-testsuite: Infiniband pkey tests
  selinux-testsuite: Infiniband endport tests

 README                                       |  17 +++-
 policy/Makefile                              |   7 +-
 policy/test_ibendport.te                     |  40 ++++++++
 policy/test_ibpkey.te                        |  30 ++++++
 tests/Makefile                               |   4 +-
 tests/infiniband_endport/Makefile            |   2 +
 tests/infiniband_endport/ibendport_test.conf |  14 +++
 tests/infiniband_endport/test                |  49 ++++++++++
 tests/infiniband_pkey/Makefile               |   7 ++
 tests/infiniband_pkey/create_modify_qp.c     | 136 +++++++++++++++++++++++++++
 tests/infiniband_pkey/ibpkey_test.conf       |  18 ++++
 tests/infiniband_pkey/test                   |  84 +++++++++++++++++
 12 files changed, 404 insertions(+), 4 deletions(-)
 create mode 100644 policy/test_ibendport.te
 create mode 100644 policy/test_ibpkey.te
 create mode 100644 tests/infiniband_endport/Makefile
 create mode 100644 tests/infiniband_endport/ibendport_test.conf
 create mode 100755 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-06-26 20:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 16:34 [PATCH v2 0/2] Selinux tests for Infinfiband Dan Jurgens
2017-05-30 16:34 ` [PATCH v2 1/2] selinux-testsuite: Infiniband pkey tests Dan Jurgens
2017-05-30 16:34 ` [PATCH v2 2/2] selinux-testsuite: Infiniband endport tests Dan Jurgens
2017-05-30 17:09   ` Stephen Smalley
2017-05-30 17:40     ` Daniel Jurgens
2017-05-30 17:52       ` Stephen Smalley
2017-05-30 17:53         ` Daniel Jurgens
2017-06-05 22:13         ` Paul Moore
2017-06-05 22:34           ` Daniel Jurgens
2017-06-09 14:44             ` Daniel Jurgens
2017-06-09 14:50               ` Paul Moore
2017-06-09 14:59                 ` Daniel Jurgens
2017-06-09 20:01                   ` Paul Moore
2017-06-09 20:23                     ` Daniel Jurgens
2017-06-26 20:16                       ` Paul Moore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.