The Samba-Bugzilla – Attachment 7477 Details for
Bug 8882
Broken processing of %U with vfs_full_audit when force user is set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 3.6.x.
0001-Fix-bug-8882-Broken-processing-of-U-with-vfs_full_au.patch (text/plain), 1.14 KB, created by
Jeremy Allison
on 2012-04-24 00:50:39 UTC
(
hide
)
Description:
git-am fix for 3.6.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2012-04-24 00:50:39 UTC
Size:
1.14 KB
patch
obsolete
>From 3348c3f8385d912d2a9e34c5ef83e4c475ab6c13 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Mon, 23 Apr 2012 17:49:49 -0700 >Subject: [PATCH] Fix bug #8882 - Broken processing of %U with vfs_full_audit > when force user is set. > >When doing a "force user" we need to remember what the "sanitized_username" >was from the original connect. >--- > source3/smbd/service.c | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/service.c b/source3/smbd/service.c >index f57e57f..6c8c8d3 100644 >--- a/source3/smbd/service.c >+++ b/source3/smbd/service.c >@@ -696,6 +696,14 @@ NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum) > return status; > } > >+ /* We don't want to replace the original sanitized_username >+ as it is the original user given in the connect attempt. >+ This is used in '%U' substitutions. */ >+ TALLOC_FREE(forced_serverinfo->sanitized_username); >+ forced_serverinfo->sanitized_username = >+ talloc_move(forced_serverinfo, >+ &conn->session_info->sanitized_username); >+ > TALLOC_FREE(conn->session_info); > conn->session_info = forced_serverinfo; > >-- >1.7.7.3 >
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:
metze
:
review+
Actions:
View
Attachments on
bug 8882
:
7471
|
7476
| 7477