]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Make check_parent_access() available to rename code.
authorJeremy Allison <jra@samba.org>
Mon, 5 Dec 2016 22:32:03 +0000 (14:32 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 2 Jan 2017 10:56:53 +0000 (11:56 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12460

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit beb8a73e95e768565760f79c2a16586bafb4e58c)

source3/smbd/open.c
source3/smbd/proto.h

index 90155bde99d9839e8af4a25f85dff5558e0bb313..ced3bb0afaa19b9a81210ad74587fcc85929f6b1 100644 (file)
@@ -235,7 +235,7 @@ NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
        return NT_STATUS_OK;
 }
 
-static NTSTATUS check_parent_access(struct connection_struct *conn,
+NTSTATUS check_parent_access(struct connection_struct *conn,
                                struct smb_filename *smb_fname,
                                uint32_t access_mask)
 {
index ca8ea575b33eda22e4ea83415bae50868affdaca..4ba73162d5b947ee786882b1729c9f586eb8a6a3 100644 (file)
@@ -615,6 +615,9 @@ NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
                                const struct smb_filename *smb_fname,
                                bool use_privs,
                                uint32_t access_mask);
+NTSTATUS check_parent_access(struct connection_struct *conn,
+                               struct smb_filename *smb_fname,
+                               uint32_t access_mask);
 NTSTATUS fd_open(struct connection_struct *conn, files_struct *fsp,
                 int flags, mode_t mode);
 NTSTATUS fd_close(files_struct *fsp);