summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-02-04 17:19:05 +0200
committerJeremy Allison <jra@samba.org>2020-02-07 21:01:31 +0000
commit54bd27167ce2b2b6ca47396c4b2d03c458615f20 (patch)
treec4c13943d1dd920db26f01e029494476b6d1c816 /source3/smbd
parentf6fe7c39cdaeb9b415c36f7ae9a8baf45dddc5b0 (diff)
downloadsamba-54bd27167ce2b2b6ca47396c4b2d03c458615f20.tar.gz
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_create.c8
1 files changed, 8 insertions, 0 deletions
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,