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/proto.h | |
parent | 7cc19afb1f739d68da852019ff709248b4dce97c (diff) | |
download | samba-442e79efbdc9dfaf5774c67edb3460603d63d2a5.tar.gz samba-442e79efbdc9dfaf5774c67edb3460603d63d2a5.tar.bz2 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/proto.h')
-rw-r--r-- | source3/smbd/proto.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 4ec91a11db..7101041195 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -349,6 +349,13 @@ NTSTATUS filename_convert(TALLOC_CTX *mem_ctx, uint32_t ucf_flags, bool *ppath_contains_wcard, struct smb_filename **pp_smb_fname); +NTSTATUS filename_convert_with_privilege(TALLOC_CTX *mem_ctx, + connection_struct *conn, + struct smb_request *smbreq, + const char *name_in, + uint32_t ucf_flags, + bool *ppath_contains_wcard, + struct smb_filename **pp_smb_fname); /* The following definitions come from smbd/files.c */ @@ -1159,6 +1166,10 @@ const char *vfs_readdirname(connection_struct *conn, void *p, int vfs_ChDir(connection_struct *conn, const char *path); char *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn); NTSTATUS check_reduced_name(connection_struct *conn, const char *fname); +NTSTATUS check_reduced_name_with_privilege(connection_struct *conn, + const char *fname, + struct smb_filename **pp_parent_name, + struct smb_filename **pp_file_name); int vfs_stat_smb_fname(struct connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf); int vfs_lstat_smb_fname(struct connection_struct *conn, const char *fname, |