selinux-testsuite: allow netlink test domains to load kernel modules
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.
Signed-off-by Paul Moore <[email protected]>
--- policy/test_netlink_socket.te | 3 +++ 1 file changed, 3 insertions(+)
policy/test_netlink_socket.te +3 -0
@@ -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)