The Samba-Bugzilla – Attachment 581 Details for
Bug 1254
write list not working under share-level security
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a patch for checking read list/write list parameters when security=share
samba-3.0.5-share_rw_check.patch (text/plain), 929 bytes, created by
Shiro Yamada
on 2004-07-25 18:43:11 UTC
(
hide
)
Description:
a patch for checking read list/write list parameters when security=share
Filename:
MIME Type:
Creator:
Shiro Yamada
Created:
2004-07-25 18:43:11 UTC
Size:
929 bytes
patch
obsolete
>diff -uNr samba-3.0.5.org/source/smbd/uid.c samba-3.0.5/source/smbd/uid.c >--- samba-3.0.5.org/source/smbd/uid.c Fri Jul 23 11:08:55 2004 >+++ samba-3.0.5/source/smbd/uid.c Mon Jul 26 10:38:21 2004 >@@ -190,11 +190,22 @@ > snum = SNUM(conn); > > if (conn->force_user) /* security = share sets this too */ { >+ user_struct tmpuser; > uid = conn->uid; > gid = conn->gid; > current_user.groups = conn->groups; > current_user.ngroups = conn->ngroups; > token = conn->nt_user_token; >+ >+ /* >+ * when security = share, Samba should checks for write list and >+ * read list parameters for this particular user. >+ */ >+ >+ fstrcpy(tmpuser.user.unix_name, conn->user); >+ tmpuser.groups = conn->groups; >+ tmpuser.n_groups = conn->ngroups; >+ conn->read_only = is_share_read_only_for_user(conn, &tmpuser); > } else if ((vuser) && check_user_ok(conn, vuser, snum)) { > uid = conn->admin_user ? 0 : vuser->uid; > gid = vuser->gid;
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
Actions:
View
Attachments on
bug 1254
:
520
|
578
|
581
|
3774
|
3775