[2091] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b6 ksu does not unlock the source cache

daemon@ATHENA.MIT.EDU (Dan Riley)
Thu Jul 11 16:01:44 1996

To: krb5-bugs@MIT.EDU
Date: Thu, 11 Jul 96 16:00:24 -0400
From: Dan Riley <dsr@lns598.lns.cornell.edu>

krb5b6 ksu forces the source ccache to stay open and never closes it,
which means the lock on the source ccache is not released until ksu
exits.  This can be inconvenient if you are ksu'ing something that will
be around for a while (e.g. a shell), as nothing else can write to
the source ccache until that exits.

Enclosed is a patch, but as I am a relative novice at kerberos 5, I
offer no guarantees of correctness.

--- clients/ksu/main.c~	Mon May 20 00:08:27 1996
+++ clients/ksu/main.c	Thu Jul 11 15:29:12 1996
@@ -809,6 +809,8 @@
               exit(1);
        }
 
+       krb5_cc_close(ksu_context, cc_source);
+
 	if (cmd){
 		if ((source_uid == 0) || (source_uid == target_uid )){
 			exec_cmd = cmd;

--
Dan Riley                          Internet:  dsr@lns598.lns.cornell.edu
Wilson Lab, Cornell University     HEPNET/SPAN: lns598::dsr (44630::dsr)
	      "Distance means nothing/To me." -Kate Bush



home help back first fref pref prev next nref lref last post