Add check_user_share_access() which factors out the share security and read_only...
[kai/samba.git] / source3 / smbd / proto.h
index 2198ccd3f7e4c69606026a3b3ef52c7eeb98066e..e8ee8733a4ac81b71e6ea96c2bb1714e91c8cd58 100644 (file)
@@ -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);