]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
SUNRPC: Add errno-to-GSS status conversion helper
authorChuck Lever <chuck.lever@oracle.com>
Mon, 27 Apr 2026 13:50:48 +0000 (09:50 -0400)
committerChuck Lever <cel@kernel.org>
Tue, 9 Jun 2026 20:32:59 +0000 (16:32 -0400)
commit6e5e0c58dbd059eef27f01805c032b8fa3cd5eb1
treeb65cebaa2808001c2cfe82d478c1c4f42c386187
parente9be933959b581effd426f93b86654f5fbf0c574
SUNRPC: Add errno-to-GSS status conversion helper

The crypto/krb5 library returns standard negative errno values,
but the GSS mechanism layer reports results as GSS_S_* major
status codes. A translation is needed at each call site that
will be switched to the new library.

Rather than open-coding the mapping in every wrapper, provide a
single helper function.

Assisted-by: Claude:claude-opus-4-6
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/gss_krb5_internal.h
net/sunrpc/auth_gss/gss_krb5_mech.c