The Samba-Bugzilla – Attachment 578 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), 724 bytes, created by
Shiro Yamada
on 2004-07-23 02:49:44 UTC
(
hide
)
Description:
a patch for checking read list/write list parameters when security=share
Filename:
MIME Type:
Creator:
Shiro Yamada
Created:
2004-07-23 02:49:44 UTC
Size:
724 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 Fri Jul 23 18:47:15 2004 >@@ -250,7 +250,20 @@ > } > must_free_token = True; > } >- >+ >+ /* >+ * when security = share, Samba should checks for write list and >+ * read list parameters for this particular user. >+ */ >+ >+ if (lp_security() == SEC_SHARE) { >+ user_struct tmpuser; >+ 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); >+ } >+ > set_sec_ctx(uid, gid, current_user.ngroups, current_user.groups, token); > > /*
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