[SCM] Samba Shared Repository - branch master updated

Ralph Böhme slow at samba.org
Thu Mar 22 17:27:02 UTC 2018


The branch, master has been updated
       via  42d6dd2 s3: smbd: always set vuid in check_user_ok()
      from  dd1f8cd selftest: consistently produce high-res UTC time

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


- Log -----------------------------------------------------------------
commit 42d6dd2f30b6c3b3176bd1f378422a2eb62b1008
Author: Ralph Boehme <slow at samba.org>
Date:   Thu Mar 22 08:03:58 2018 +0100

    s3: smbd: always set vuid in check_user_ok()
    
    A SMB session reauth will have invalidated conn->vuid via
    conn_clear_vuid_caches().
    
    Ensure conn->vuid always has the vuid of the current user in
    check_user_ok().
    
    Bug: https://bugzilla.samba.org/show_bug.cgi?id=13351
    
    Signed-off-by: Ralph Boehme <slow at samba.org>
    Reviewed-by: Stefan Metzmacher <metze at samba.org>
    
    Autobuild-User(master): Ralph Böhme <slow at samba.org>
    Autobuild-Date(master): Thu Mar 22 18:26:04 CET 2018 on sn-devel-144

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

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


Changeset truncated at 500 lines:

diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 6eb5392..b24ae3c 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -202,6 +202,7 @@ static bool check_user_ok(connection_struct *conn,
 			conn->session_info = ent->session_info;
 			conn->read_only = ent->read_only;
 			conn->share_access = ent->share_access;
+			conn->vuid = ent->vuid;
 			return(True);
 		}
 	}
@@ -250,6 +251,7 @@ static bool check_user_ok(connection_struct *conn,
 	ent->share_access = share_access;
 	free_conn_session_info_if_unused(conn);
 	conn->session_info = ent->session_info;
+	conn->vuid = ent->vuid;
 	if (vuid == UID_FIELD_INVALID) {
 		/*
 		 * Not strictly needed, just make it really


-- 
Samba Shared Repository



More information about the samba-cvs mailing list