summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-12-04 11:20:57 -0800
committerJeremy Allison <jra@samba.org>2008-12-04 11:20:57 -0800
commit15e1fd7c540ab47dffdfbd4cfad3a8c18a3f62dc (patch)
tree7a78b82d7d13f64ca24ebd6fe357bfbb90ed4bb0 /source3/include
parent677e0fb9659abe1ad684dd980d61b88caad9f8a2 (diff)
downloadsamba-15e1fd7c540ab47dffdfbd4cfad3a8c18a3f62dc.tar.gz
samba-15e1fd7c540ab47dffdfbd4cfad3a8c18a3f62dc.tar.bz2
samba-15e1fd7c540ab47dffdfbd4cfad3a8c18a3f62dc.zip
Fix bug #1254 - write list not working under share-level security
A somewhat more elegant fix than I could use for 3.2.x or 3.0.x. Turns out the only part of check_user_ok() that needs to change for share level security is the VUID cache pieces, so I can just always use check_user_ok() for all lp_security() cases. Jeremy
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 63fe4d47c5..89b443e9db 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -123,7 +123,7 @@ NTSTATUS make_serverinfo_from_username(TALLOC_CTX *mem_ctx,
bool is_guest,
struct auth_serversupplied_info **presult);
struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
- auth_serversupplied_info *src);
+ const auth_serversupplied_info *src);
bool init_guest_info(void);
bool server_info_set_session_key(struct auth_serversupplied_info *info,
DATA_BLOB session_key);
@@ -8462,10 +8462,10 @@ bool token_contains_name_in_list(const char *username,
const struct nt_user_token *token,
const char **list);
bool user_ok_token(const char *username, const char *domain,
- struct nt_user_token *token, int snum);
+ const struct nt_user_token *token, int snum);
bool is_share_read_only_for_token(const char *username,
const char *domain,
- struct nt_user_token *token,
+ const struct nt_user_token *token,
connection_struct *conn);
/* The following definitions come from smbd/srvstr.c */