From: Jeremy Allison Date: Mon, 5 Dec 2016 22:32:03 +0000 (-0800) Subject: s3: smbd: Make check_parent_access() available to rename code. X-Git-Tag: samba-4.4.9~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17e1fe13f78cc4be83d0981d75740aa7fb240157;p=thirdparty%2Fsamba.git s3: smbd: Make check_parent_access() available to rename code. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12460 Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme (cherry picked from commit beb8a73e95e768565760f79c2a16586bafb4e58c) --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 90155bde99d..ced3bb0afaa 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index ca8ea575b33..4ba73162d5b 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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);