[RFC PATCH 0/1] selinux-testsuite: Reduce sctp test runtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch uses the audit system to detect AVC events and if detected exit
the test with the specified exit code.

This speeds up the sctp tests as the clients do not have to hang around for
the socket call to timeout.

There are some notes in sctp_common.c on the process.
Using './test -v' will show the audit entries captured and any triggers.

Without this patch sctp tests take ~2.6 min, with patch ~4 secs.

If acceptable I could do the same with the inet_socket tests.

Richard Haines (1):
  selinux-testsuite: Reduce sctp test runtime

 README.md                              |  5 +-
 policy/test_sctp.te                    |  1 +
 tests/sctp/Makefile                    |  2 +-
 tests/sctp/sctp_asconf_params_client.c | 51 ++++++++++++-
 tests/sctp/sctp_client.c               | 52 ++++++++++++--
 tests/sctp/sctp_common.c               | 99 ++++++++++++++++++++++++++
 tests/sctp/sctp_common.h               | 11 +++
 tests/sctp/test                        | 50 ++++++-------
 travis-ci/run-testsuite.sh             |  1 +
 9 files changed, 237 insertions(+), 35 deletions(-)

-- 
2.28.0




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux