From 088468195b7f7f04eab0ce6fb928bda1c703e2fa Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 24 Feb 2016 15:51:14 +0100 Subject: [PATCH] smbd:smb2: add a modify flag to dispatch table This indicates that an operation is a modifying operation. Some parts of the upcoming channel sequence number logic only applies to modify operations. Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Michael Adam Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/smbd/smb2_server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 68d637e0c235..7b6d8d640992 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -46,6 +46,7 @@ static const struct smbd_smb2_dispatch_table { bool as_root; uint16_t fileid_ofs; bool allow_invalid_fileid; + bool modify; } smbd_smb2_table[] = { #define _OP(o) .opcode = o, .name = #o { @@ -98,6 +99,7 @@ static const struct smbd_smb2_dispatch_table { .need_session = true, .need_tcon = true, .fileid_ofs = 0x10, + .modify = true, },{ _OP(SMB2_OP_LOCK), .need_session = true, @@ -109,6 +111,7 @@ static const struct smbd_smb2_dispatch_table { .need_tcon = true, .fileid_ofs = 0x08, .allow_invalid_fileid = true, + .modify = true, },{ _OP(SMB2_OP_CANCEL), .as_root = true, @@ -135,6 +138,7 @@ static const struct smbd_smb2_dispatch_table { .need_session = true, .need_tcon = true, .fileid_ofs = 0x10, + .modify = true, },{ _OP(SMB2_OP_BREAK), .need_session = true, -- 2.34.1