summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-04 14:37:26 -0700
committerJeremy Allison <jra@samba.org>2011-11-04 14:37:26 -0700
commita30f84a21c9d4e702ae0faace9bdf435b9882af7 (patch)
treea4361467979548d3ba56fb136723c3838ceea9c7 /source3
parent32edc1d047480a0bcf92c9a172ec8161748f3d74 (diff)
downloadsamba-a30f84a21c9d4e702ae0faace9bdf435b9882af7.tar.gz
samba-a30f84a21c9d4e702ae0faace9bdf435b9882af7.tar.bz2
samba-a30f84a21c9d4e702ae0faace9bdf435b9882af7.zip
Expose smbd_check_access_rights() to other modules.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
-rw-r--r--source3/smbd/proto.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index b77f661cee..bd022ecd59 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -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)
{
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index f6d543972f..ff56b15dd0 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -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,