Changeset 746 for vendor/current/source3/smbd/proto.h
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/proto.h
r740 r746 302 302 uint32_t access_mask); 303 303 bool can_delete_file_in_directory(connection_struct *conn, 304 struct smb_filename *smb_fname);304 const struct smb_filename *smb_fname); 305 305 bool can_access_file_data(connection_struct *conn, 306 306 const struct smb_filename *smb_fname, … … 337 337 struct smb_filename **smb_fname, 338 338 uint32_t ucf_flags); 339 NTSTATUS check_veto_path(connection_struct *conn, const char *name); 339 340 NTSTATUS check_name(connection_struct *conn, const char *name); 340 341 int get_real_filename(connection_struct *conn, const char *path, … … 373 374 void file_free(struct smb_request *req, files_struct *fsp); 374 375 files_struct *file_fsp(struct smb_request *req, uint16 fid); 376 uint64_t fsp_persistent_id(const struct files_struct *fsp); 377 struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req, 378 uint64_t persistent_id, 379 uint64_t volatile_id); 375 380 NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from, 376 381 uint32 access_mask, uint32 share_access, … … 557 562 char *pdata, int datasize); 558 563 void reply_ntcreate_and_X(struct smb_request *req); 559 NTSTATUS set_sd(files_struct *fsp, uint8_t *data, uint32_t sd_len,564 NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd, 560 565 uint32_t security_info_sent); 566 NTSTATUS set_sd_blob(files_struct *fsp, uint8_t *data, uint32_t sd_len, 567 uint32_t security_info_sent); 568 NTSTATUS smb_fsctl(struct files_struct *fsp, 569 TALLOC_CTX *ctx, 570 uint32_t function, 571 uint16_t req_flags, /* Needed for UNICODE ... */ 572 const uint8_t *_in_data, 573 uint32_t in_len, 574 uint8_t **_out_data, 575 uint32_t max_out_len, 576 uint32_t *out_len); 561 577 struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size); 562 578 void reply_ntcancel(struct smb_request *req); … … 587 603 const char *fname, 588 604 SMB_STRUCT_STAT *psbuf); 589 bool is_executable(const char *fname);590 605 bool is_stat_open(uint32 access_mask); 591 606 bool request_timed_out(struct timeval request_time, … … 607 622 uint32 share_access, 608 623 uint32 create_options); 609 bool map_open_params_to_ntcreate(const struct smb_filename *smb_fname,610 int deny_mode, int open_func,611 uint32 *paccess_mask,612 uint32 *pshare_mode,613 uint32 *pcreate_disposition,614 uint32 *pcreate_options,615 uint32_t *pprivate_flags);616 624 void remove_deferred_open_entry(struct file_id id, uint64_t mid, 617 625 struct server_id pid); … … 802 810 bool req_is_in_chain(struct smb_request *req); 803 811 void smbd_process(struct smbd_server_connection *sconn); 812 bool fork_echo_handler(struct smbd_server_connection *sconn); 804 813 805 814 /* The following definitions come from smbd/quotas.c */ … … 960 969 bool unix_token_equal(const struct security_unix_token *t1, const struct security_unix_token *t2); 961 970 bool push_sec_ctx(void); 962 void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, struct security_token *token);971 void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, const struct security_token *token); 963 972 void set_root_sec_ctx(void); 964 973 bool pop_sec_ctx(void); … … 988 997 int add_home_service(const char *service, const char *username, const char *homedir); 989 998 int find_service(TALLOC_CTX *ctx, const char *service, char **p_service_out); 990 connection_struct *make_connection_snum(struct smbd_server_connection *sconn, 991 int snum, user_struct *vuser, 999 struct smbd_smb2_tcon; 1000 connection_struct *make_connection_smb2(struct smbd_server_connection *sconn, 1001 struct smbd_smb2_tcon *tcon, 1002 user_struct *vuser, 992 1003 DATA_BLOB password, 993 1004 const char *pdev, … … 1045 1056 bool case_sensitive); 1046 1057 bool stat_cache_lookup(connection_struct *conn, 1058 bool posix_paths, 1047 1059 char **pp_name, 1048 1060 char **pp_dirpath, … … 1175 1187 NTSTATUS vfs_stat_fsp(files_struct *fsp); 1176 1188 NTSTATUS vfs_chown_fsp(files_struct *fsp, uid_t uid, gid_t gid); 1189 NTSTATUS vfs_streaminfo(connection_struct *conn, 1190 struct files_struct *fsp, 1191 const char *fname, 1192 TALLOC_CTX *mem_ctx, 1193 unsigned int *num_streams, 1194 struct stream_struct **streams); 1177 1195 1178 1196 /* The following definitions come from smbd/avahi_register.c */
Note:
See TracChangeset
for help on using the changeset viewer.