svn commit: samba r22351 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Thu Apr 19 00:40:09 GMT 2007


Author: jra
Date: 2007-04-19 00:40:08 +0000 (Thu, 19 Apr 2007)
New Revision: 22351

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22351

Log:
Making progress in tests...
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/seal.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/seal.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/seal.c	2007-04-19 00:35:18 UTC (rev 22350)
+++ branches/SAMBA_3_0/source/smbd/seal.c	2007-04-19 00:40:08 UTC (rev 22351)
@@ -127,6 +127,12 @@
 		return map_nt_error_from_gss(ret, min);
 	}
 
+	/*
+	 * We're accessing the krb5.keytab file here.
+ 	 * ensure we have permissions to do so.
+ 	 */
+	become_root();
+
 	ret = gss_acquire_cred(&min,
 				srv_name,
 				GSS_C_INDEFINITE,
@@ -135,6 +141,7 @@
 				p_srv_cred,
 				NULL,
 				NULL);
+	unbecome_root();
 
 	if (ret != GSS_S_COMPLETE) {
 		ADS_STATUS adss = ADS_ERROR_GSS(ret, min);



More information about the samba-cvs mailing list