diff options
author | Jeremy Allison <jra@samba.org> | 2012-02-24 14:12:05 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-02-29 15:57:49 -0800 |
commit | 442e79efbdc9dfaf5774c67edb3460603d63d2a5 (patch) | |
tree | 6ce378bf75a7fdf3d778ceffec55293f00c94142 /source3/smbd/vfs.c | |
parent | 7cc19afb1f739d68da852019ff709248b4dce97c (diff) | |
download | samba-442e79efbdc9dfaf5774c67edb3460603d63d2a5.tar.gz samba-442e79efbdc9dfaf5774c67edb3460603d63d2a5.tar.xz samba-442e79efbdc9dfaf5774c67edb3460603d63d2a5.zip |
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.
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r-- | source3/smbd/vfs.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 6239ad4796..65c2535629 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -895,6 +895,21 @@ char *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn) /******************************************************************* 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. ********************************************************************/ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) |