From: Volker Lendecke Date: Tue, 4 Feb 2020 15:19:05 +0000 (+0200) Subject: smbd: Ignore incoming POSIX create context X-Git-Tag: ldb-2.1.1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54bd27167ce2b2b6ca47396c4b2d03c458615f20;p=thirdparty%2Fsamba.git smbd: Ignore incoming POSIX create context We will use this internally and can only expose this once SMB3.11 unix extensions are activated for the client. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index bf0c3912c07..2221c4c7d0d 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -551,6 +551,14 @@ static NTSTATUS smbd_smb2_create_fetch_create_ctx( struct smbd_smb2_create_state *state = tevent_req_data( req, struct smbd_smb2_create_state); + /* + * For now, remove the posix create context from the wire. We + * are using it inside smbd and will properly use it once + * smb3.11 unix extensions will be done. So in the future we + * will remove it only if unix extensions are not negotiated. + */ + smb2_create_blob_remove(in_context_blobs, SMB2_CREATE_TAG_POSIX); + state->dhnq = smb2_create_blob_find(in_context_blobs, SMB2_CREATE_TAG_DHNQ); state->dhnc = smb2_create_blob_find(in_context_blobs,