Skip to contentSkip to conversation

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

PATCH New Paul Moore 1 participant 1 message Feb 9, 2017 SELinux security module

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

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

From: Paul Moore <[email protected]>

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.

---
 policy/test_netlink_socket.te |    3 +++
 1 file changed, 3 insertions(+)
policy/test_netlink_socket.te +3 -0
index b56c06c..c852c04 100644
@@ -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)