From cc5601dfbe58ee8b0a024e2f9448a6a4f53c02a8 Mon Sep 17 00:00:00 2001 From: Jeremy Filizetti Date: Sat, 5 Nov 2016 19:09:05 -0400 Subject: [PATCH] LU-8795 gss: Prevent callout truncation with non-root users The SK changes included an additional svc_type field in the callout which was initialized to the '0'. Since the defaulted value is not changed prior to callout for non-root users this breaks those kerberos users. SK is not affected because all users share the same key context which is limited to the root user. Signed-off-by: Jeremy Filizetti Change-Id: I2c906714ee6ad6a0091ac922298aee7b63b9e856 Reviewed-on: http://review.whamcloud.com/23600 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/ptlrpc/gss/gss_keyring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/gss/gss_keyring.c b/lustre/ptlrpc/gss/gss_keyring.c index bafe53b..2ebaeca 100644 --- a/lustre/ptlrpc/gss/gss_keyring.c +++ b/lustre/ptlrpc/gss/gss_keyring.c @@ -724,7 +724,7 @@ struct ptlrpc_cli_ctx * gss_sec_lookup_ctx_kr(struct ptlrpc_sec *sec, char *coinfo; int coinfo_size; const char *sec_part_flags = ""; - char svc_flag = '\0'; + char svc_flag = '-'; ENTRY; LASSERT(imp != NULL); -- 1.8.3.1