summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-12-09 16:47:13 -0800
committerJule Anger <janger@samba.org>2022-01-31 12:23:52 +0100
commit43a9866c46b9a82af34693e5c17c0c627169cb76 (patch)
tree83b14f1ada0ac9e8ad4ab93699ce9f1108961626
parent838985e439df0c1b741516ff141da02ecbf5656f (diff)
downloadsamba-43a9866c46b9a82af34693e5c17c0c627169cb76.tar.gz
CVE-2021-44141: s3: smbd: check_name() is now static to filename.c
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14911 Signed-off-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/filename.c2
-rw-r--r--source3/smbd/proto.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 11022dca703..44f9aebf068 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -1430,7 +1430,7 @@ static NTSTATUS check_veto_path(connection_struct *conn,
a valid one for the user to access.
****************************************************************************/
-NTSTATUS check_name(connection_struct *conn,
+static NTSTATUS check_name(connection_struct *conn,
const struct smb_filename *smb_fname)
{
NTSTATUS status = check_veto_path(conn, smb_fname);
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index fa26d58bfde..e6a0d6c3d51 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -358,8 +358,6 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
NTTIME twrp,
struct smb_filename **smb_fname,
uint32_t ucf_flags);
-NTSTATUS check_name(connection_struct *conn,
- const struct smb_filename *smb_fname);
NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname,
uint32_t ucf_flags,
NTTIME twrp);