From 442e79efbdc9dfaf5774c67edb3460603d63d2a5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 24 Feb 2012 14:12:05 -0800 Subject: Add check_reduced_name_with_privilege(), filename_convert_with_privilege() (currently unimplemented) in order to prepare for adding SeBackup/SeRestore code to the main fileserver. Not yet plumbed into the main SMB1/SMB2 code. --- source3/smbd/vfs.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source3/smbd/vfs.c') diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 6239ad47966..65c25356290 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -892,6 +892,21 @@ char *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn) return result; } +/******************************************************************* + Reduce a file name, removing .. elements and checking that + it is below dir in the heirachy. This uses realpath. + This function must run as root, and will return names + and valid stat structs that can be checked on open. +********************************************************************/ + +NTSTATUS check_reduced_name_with_privilege(connection_struct *conn, + const char *fname, + struct smb_filename **pp_parent_name, + struct smb_filename **pp_file_name) +{ + return NT_STATUS_NOT_IMPLEMENTED; +} + /******************************************************************* Reduce a file name, removing .. elements and checking that it is below dir in the heirachy. This uses realpath. -- cgit