The Samba-Bugzilla – Attachment 14312 Details for
Bug 13351
conn->vuid is invalid after a SMB session reauth
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.7 and 4.8 cherry-picked from master
bug13351-v47,v48.patch (text/plain), 1.54 KB, created by
Ralph Böhme
on 2018-07-07 12:56:25 UTC
(
hide
)
Description:
Patch for 4.7 and 4.8 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2018-07-07 12:56:25 UTC
Size:
1.54 KB
patch
obsolete
>From 1598b78bf791b5a2b8ff52745563ebfcc2a5a0cb Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Thu, 22 Mar 2018 08:03:58 +0100 >Subject: [PATCH] s3: smbd: always set vuid in check_user_ok() >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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@samba.org> >Reviewed-by: Stefan Metzmacher <metze@samba.org> > >Autobuild-User(master): Ralph Böhme <slow@samba.org> >Autobuild-Date(master): Thu Mar 22 18:26:04 CET 2018 on sn-devel-144 > >(cherry picked from commit 42d6dd2f30b6c3b3176bd1f378422a2eb62b1008) >--- > source3/smbd/uid.c | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c >index 6eb53920abf..b24ae3cc3b0 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 >-- >2.13.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
metze
:
review+
Actions:
View
Attachments on
bug 13351
: 14312