summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-19 00:44:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:28 -0500
commitd47868cb5e7db5b75848473b90ff2984c3162f8d (patch)
treecc3a83f101dc08a462250ab0cf985c6c805fef46
parent226d96337fdb53f402569c12c6fd5b6a07123eb4 (diff)
downloadsamba-d47868cb5e7db5b75848473b90ff2984c3162f8d.tar.gz
samba-d47868cb5e7db5b75848473b90ff2984c3162f8d.tar.bz2
samba-d47868cb5e7db5b75848473b90ff2984c3162f8d.zip
r22352: Wow - working gss SMB sealing !
Jeremy. (This used to be commit abcb2a4b0709ef84c50c1d9a85191dc3866cd138)
-rw-r--r--source3/smbd/seal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c
index 7dd6e3d7bb..07ef186e2e 100644
--- a/source3/smbd/seal.c
+++ b/source3/smbd/seal.c
@@ -365,6 +365,8 @@ static NTSTATUS srv_enc_spnego_gss_negotiate(unsigned char **ppdata, size_t *p_d
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 @@ static NTSTATUS srv_enc_spnego_gss_negotiate(unsigned char **ppdata, size_t *p_d
&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) {