rpc.gssd: Replace exit(0) by return in process_krb5_upcall
Subsystems (2)
PATCH 1/1 rpc.gssd: Replace exit(0) by return in process_krb5_upcall
From: Andy Adamson <[email protected]>
exit(0) silenty reaps the gssd_k5_kt_princ struct, the in-memory rpc.gssd cache which means that rpc.gssd will get a new TGT and TGS for each upcall, ignoring a valid TGT in the kerberos credential cache.
--- utils/gssd/gssd_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/gssd/gssd_proc.c +1 -1
@@ -684,7 +684,7 @@ out:AUTH_DESTROY (auth);if (rpc_clnt)clnt_destroy (rpc_clnt); -exit (0 ); +return ; out_return_error:do_error_downcall (fd, uid, downcall_err);
Signature · 1 line
1.9.3 (Apple Git-50)
Quoted 7 lines · On 08/19/2015 03:58 PM, [email protected] wrote:
From: Andy Adamson <[email protected]>
exit(0) silenty reaps the
gssd_k5_kt_princstruct, the in-memory rpc.gssd cache which means that rpc.gssd will get a new TGT and TGS for each upcall, ignoring a valid TGT in the kerberos credential cache.Signed-off-by Andy Adamson <[email protected]>
Committed...
steved.
Quoted 18 lines
--- utils/gssd/gssd_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)utils/gssd/gssd_proc.c +1
-1@@ -684,7 +684,7 @@ out:AUTH_DESTROY (auth);if (rpc_clnt)clnt_destroy (rpc_clnt); -exit (0 ); +return ; out_return_error:do_error_downcall (fd, uid, downcall_err);
Quoted 11 lines · Steve Dickson
Quoted 7 lines · On 08/19/2015 03:58 PM, [email protected] wrote:
From: Andy Adamson <[email protected]>
exit(0) silenty reaps the
gssd_k5_kt_princstruct, the in-memory rpc.gssd cache which means that rpc.gssd will get a new TGT and TGS for each upcall, ignoring a valid TGT in the kerberos credential cache.Signed-off-by Andy Adamson <[email protected]>Committed...
This has been reverted due to child processes not exiting on upcalls.
steved.
Quoted 26 lines
steved.
Quoted 10 lines
--- utils/gssd/gssd_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)utils/gssd/gssd_proc.c +0
-0utils/gssd/gssd_proc.c out: · line 690
Quoted 8 lines
utils/gssd/gssd_proc.c +1
-1@@ -684,7 +684,7 @@ out:AUTH_DESTROY (auth);if (rpc_clnt)clnt_destroy (rpc_clnt); -exit (0 ); +return ; out_return_error:do_error_downcall (fd, uid, downcall_err);--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html