summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_gss/Makefile
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-01-15 18:23:34 +0100
committerChuck Lever <chuck.lever@oracle.com>2023-02-20 15:20:46 +0100
commiteebd8c2d1978f5cb6e76e4e3045220b67548cb79 (patch)
treefc9e282885de3c30d9517ce0e0ccb1d855f5d7b4 /net/sunrpc/auth_gss/Makefile
parentSUNRPC: Move remaining internal definitions to gss_krb5_internal.h (diff)
downloadlinux-eebd8c2d1978f5cb6e76e4e3045220b67548cb79.tar.xz
linux-eebd8c2d1978f5cb6e76e4e3045220b67548cb79.zip
SUNRPC: Add KUnit tests for rpcsec_krb5.ko
The Kerberos RFCs provide test vectors to verify the operation of an implementation. Introduce a KUnit test framework to exercise the Linux kernel's implementation of Kerberos. Start with test cases for the RFC 3961-defined n-fold function. The sample vectors for that are found in RFC 3961 Section 10. Run the GSS Kerberos 5 mechanism's unit tests with this command: $ ./tools/testing/kunit/kunit.py run \ --kunitconfig ./net/sunrpc/.kunitconfig Tested-by: Scott Mayhew <smayhew@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/auth_gss/Makefile')
-rw-r--r--net/sunrpc/auth_gss/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/Makefile b/net/sunrpc/auth_gss/Makefile
index 4a29f4c5dac4..012ae1720689 100644
--- a/net/sunrpc/auth_gss/Makefile
+++ b/net/sunrpc/auth_gss/Makefile
@@ -13,3 +13,5 @@ obj-$(CONFIG_RPCSEC_GSS_KRB5) += rpcsec_gss_krb5.o
rpcsec_gss_krb5-y := gss_krb5_mech.o gss_krb5_seal.o gss_krb5_unseal.o \
gss_krb5_seqnum.o gss_krb5_wrap.o gss_krb5_crypto.o gss_krb5_keys.o
+
+obj-$(CONFIG_RPCSEC_GSS_KRB5_KUNIT_TEST) += gss_krb5_test.o