Expose smbd_check_access_rights() to other modules.
authorJeremy Allison <jra@samba.org>
Fri, 4 Nov 2011 21:37:26 +0000 (14:37 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 4 Nov 2011 21:37:26 +0000 (14:37 -0700)
source3/smbd/open.c
source3/smbd/proto.h

index b77f661cee7cb1875e8cfc95891b234f3de41d43..bd022ecd59966e9b33f2fa323a03dbf4b0abbaf1 100644 (file)
@@ -60,7 +60,7 @@ static bool parent_override_delete(connection_struct *conn,
  Check if we have open rights.
 ****************************************************************************/
 
-static NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
+NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
                                struct smb_filename *smb_fname,
                                uint32_t access_mask)
 {
index f6d543972f4ad80e39993bffc9835876bd79cdf4..ff56b15dd0bd8fe0dc26e46deede8f9785877055 100644 (file)
@@ -580,6 +580,9 @@ void reply_nttranss(struct smb_request *req);
 
 /* The following definitions come from smbd/open.c  */
 
+NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
+                               struct smb_filename *smb_fname,
+                               uint32_t access_mask);
 NTSTATUS fd_close(files_struct *fsp);
 void change_file_owner_to_parent(connection_struct *conn,
                                 const char *inherit_from_dir,