Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
FILE_WRITE_DATA));
}
+/****************************************************************************
+ Userspace check for write access to fsp.
+****************************************************************************/
+
+bool can_write_to_fsp(struct files_struct *fsp)
+{
+ return NT_STATUS_IS_OK(smbd_check_access_rights_fsp(fsp,
+ false,
+ FILE_WRITE_DATA));
+}
+
/****************************************************************************
Check for an existing default Windows ACL on a directory fsp.
****************************************************************************/
bool can_write_to_file(connection_struct *conn,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname);
+bool can_write_to_fsp(struct files_struct *fsp);
bool directory_has_default_acl_fsp(struct files_struct *fsp);
NTSTATUS can_set_delete_on_close(files_struct *fsp, uint32_t dosmode);