[SCM] Samba Shared Repository - branch master updated

Uri Simchoni uri at samba.org
Wed Nov 4 21:15:03 UTC 2015


The branch, master has been updated
       via  aa3cc0b s3: smbd: If EA's are turned off on a share don't allow an SMB2 create containing them.
      from  b06544d wafsamba: detect programmer errors in CHECK_BUNDLED_SYSTEM()

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit aa3cc0b459124c66de0aad8ff41908e1bf261222
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Nov 4 09:34:57 2015 -0800

    s3: smbd: If EA's are turned off on a share don't allow an SMB2 create containing them.
    
    Otherwise a create that should have failed may succeed.
    
    Based on an original patch from John Mulligan <phlogistonjohn at asynchrono.us>
    and comments from Uri Simchoni <uri at samba.org>
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=11589
    
    Signed-off-by: Jeremy Allison <jra at samba.org>
    Reviewed-by: Uri Simchoni <uri at samba.org>
    
    Autobuild-User(master): Uri Simchoni <uri at samba.org>
    Autobuild-Date(master): Wed Nov  4 22:14:22 CET 2015 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/smb2_create.c | 6 ++++++
 1 file changed, 6 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index e151e96..1b12962 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -707,6 +707,12 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
 		}
 
 		if (exta) {
+			if (!lp_ea_support(SNUM(smb2req->tcon->compat))) {
+				tevent_req_nterror(req,
+					NT_STATUS_EAS_NOT_SUPPORTED);
+				return tevent_req_post(req, ev);
+			}
+
 			ea_list = read_nttrans_ea_list(mem_ctx,
 				(const char *)exta->data.data, exta->data.length);
 			if (!ea_list) {


-- 
Samba Shared Repository



More information about the samba-cvs mailing list