diff mbox

selinux-testsuite: allow netlink test domains to load kernel modules

Message ID 148666025965.8273.14181813922260343065.stgit@sifl (mailing list archive)
State Accepted
Headers show

Commit Message

Paul Moore Feb. 9, 2017, 5:10 p.m. UTC
From: Paul Moore <paul@paul-moore.com>

Depending on the system state, the netlink tests added in
2dbd45fd3a61 ("selinux-testsuite: add tests for new netlink socket
classes") may need to load additional kernel modules to operate
properly.

Signed-off-by: Paul Moore <paul@paul-moore.com>
---
 policy/test_netlink_socket.te |    3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/policy/test_netlink_socket.te b/policy/test_netlink_socket.te
index b56c06c..c852c04 100644
--- a/policy/test_netlink_socket.te
+++ b/policy/test_netlink_socket.te
@@ -48,3 +48,6 @@  netlink_socket_test(netlink_crypto_socket)
 # Entry into the test domains via the test program.
 miscfiles_domain_entry_test_files(netlinksocktestdomain)
 userdom_sysadm_entry_spec_domtrans_to(netlinksocktestdomain)
+
+# Trigger kernel module auto-loading of the protocol implementations.
+kernel_request_load_module(netlinksocktestdomain)