diff options
author | Jeremy Allison <jra@samba.org> | 2013-01-04 14:27:18 -0800 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-09 15:29:22 +1100 |
commit | 8475f206b296362fc2473bf6eb4b6d51834f8245 (patch) | |
tree | cf1c7cc693395c9d5d7d4b3efec96226023b8d93 /source3/smbd/proto.h | |
parent | 6d7bffa6069ef41c36c40453681372973bba0c86 (diff) | |
download | samba-8475f206b296362fc2473bf6eb4b6d51834f8245.tar.gz samba-8475f206b296362fc2473bf6eb4b6d51834f8245.tar.bz2 samba-8475f206b296362fc2473bf6eb4b6d51834f8245.zip |
Add check_user_share_access() which factors out the share security and read_only flag setting code.
Allows this to be called from both make_connection_snum() as well as check_user_ok().
Gives a consistent share security check function.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r-- | source3/smbd/proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 2198ccd3f7..e8ee8733a4 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1099,6 +1099,10 @@ void reply_transs2(struct smb_request *req); /* The following definitions come from smbd/uid.c */ bool change_to_guest(void); +NTSTATUS check_user_share_access(connection_struct *conn, + const struct auth_session_info *session_info, + uint32_t *p_share_access, + bool *p_readonly_share); bool change_to_user(connection_struct *conn, uint64_t vuid); bool change_to_root_user(void); bool smbd_change_to_root_user(void); |