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

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


Author: jra
Date: 2007-04-19 00:44:39 +0000 (Thu, 19 Apr 2007)
New Revision: 22352

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

Log:
Wow - working gss SMB sealing !
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:40:08 UTC (rev 22351)
+++ branches/SAMBA_3_0/source/smbd/seal.c	2007-04-19 00:44:39 UTC (rev 22352)
@@ -365,6 +365,8 @@
 	out_buf.value = NULL;
 	out_buf.length = 0;
 
+	become_root();
+
 	ret = gss_accept_sec_context(&min,
 				&gss_state->gss_ctx,
 				gss_state->creds,
@@ -376,6 +378,7 @@
 				&flags,
 				NULL,		/* Ingore time. */
 				NULL);		/* Ignore delegated creds. */
+	unbecome_root();
 
 	status = gss_err_to_ntstatus(ret, min);
 	if (ret != GSS_S_COMPLETE && ret != GSS_S_CONTINUE_NEEDED) {



More information about the samba-cvs mailing list