/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_directory.c | 121 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path, in smb_common_create_directory() 132 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS, in smb_common_create_directory() 144 rc = smb_fsop_access(sr, sr->user_cr, fqi->fq_dnode, in smb_common_create_directory() 162 rc = smb_fsop_mkdir(sr, sr->user_cr, fqi->fq_dnode, fqi->fq_last_comp, in smb_common_create_directory() 244 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path, in smb_com_delete_directory() 252 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS, in smb_com_delete_directory() 299 (smb_fsop_access(sr, sr->user_cr, fqi->fq_fnode, DELETE) in smb_com_delete_directory() 311 rc = smb_fsop_rmdir(sr, sr->user_cr, fqi->fq_dnode, in smb_com_delete_directory() 409 rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode, in smb_com_check_directory() 416 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS, in smb_com_check_directory() [all …]
|
H A D | smb_common_open.c | 443 rc = smb_pathname_reduce(sr, sr->user_cr, pn->pn_path, in smb_open_subr() 612 status = smb_fsop_access(sr, sr->user_cr, node, in smb_open_subr() 630 smb_fsop_eaccess(sr, sr->user_cr, node, &max_allowed); in smb_open_subr() 648 status = smb_fsop_shrlock(sr->user_cr, node, uniq_fid, in smb_open_subr() 676 rc = smb_fsop_setattr(sr, sr->user_cr, node, &new_attr); in smb_open_subr() 678 smb_fsop_unshrlock(sr->user_cr, node, uniq_fid); in smb_open_subr() 691 rc = smb_fsop_remove_streams(sr, sr->user_cr, in smb_open_subr() 694 smb_fsop_unshrlock(sr->user_cr, node, in smb_open_subr() 771 rc = smb_fsop_create(sr, sr->user_cr, dnode, in smb_open_subr() 785 status = smb_fsop_shrlock(sr->user_cr, node, uniq_fid, in smb_open_subr() [all …]
|
H A D | smb_set_fileinfo.c | 243 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_set_by_fid() 289 rc = smb_pathname_reduce(sr, sr->user_cr, pn->pn_path, in smb_set_by_path() 292 rc = smb_fsop_lookup_name(sr, sr->user_cr, SMB_FOLLOW_LINKS, in smb_set_by_path() 413 rc = smb_node_setattr(sr, node, sr->user_cr, NULL, &attr); in smb_set_information() 453 rc = smb_node_setattr(sr, sinfo->si_node, sr->user_cr, in smb_set_information2() 499 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_set_standard_info() 568 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_set_basic_info() 605 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_set_eof_info() 643 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_set_alloc_info() 709 sr->user_cr, flags); in smb_set_disposition_info()
|
H A D | smb_rename.c | 357 rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode, in smb_common_rename() 377 rc = smb_fsop_lookup(sr, sr->user_cr, 0, tnode, in smb_common_rename() 420 rc = smb_fsop_lookup(sr, sr->user_cr, in smb_common_rename() 506 rc = smb_fsop_rename(sr, sr->user_cr, in smb_common_rename() 624 rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode, in smb_make_link() 647 rc = smb_fsop_lookup(sr, sr->user_cr, 0, tnode, in smb_make_link() 659 rc = smb_fsop_link(sr, sr->user_cr, src_fqi->fq_fnode, in smb_make_link() 703 rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode, in smb_rename_lookup_src() 708 rc = smb_fsop_lookup(sr, sr->user_cr, 0, tnode, in smb_rename_lookup_src()
|
H A D | smb_delete.c | 163 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path, in smb_com_delete() 194 rc = smb_fsop_access(sr, sr->user_cr, fqi->fq_dnode, in smb_com_delete() 243 if (smb_fsop_lookup_name(sr, sr->user_cr, 0, sr->tid_tree->t_snode, in smb_delete_single_file() 310 rc = smb_fsop_lookup_name(sr, sr->user_cr, SMB_CASE_SENSITIVE, in smb_delete_multiple_files() 548 rc = smb_fsop_remove(sr, sr->user_cr, node->n_dnode, in smb_delete_remove_file()
|
H A D | smb_flush.c | 122 sr->user_cr = smb_ofile_getcred(ofile); in smb_flush_file() 125 (void) smb_fsop_commit(sr, sr->user_cr, ofile->f_node); in smb_flush_file()
|
H A D | smb_write.c | 91 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write() 182 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_and_close() 285 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_and_unlock() 417 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_andx() 488 rc = smb_fsop_write(sr, sr->user_cr, node, in smb_common_write() 571 rc = smb_node_setattr(sr, node, sr->user_cr, ofile, &attr); in smb_write_truncate()
|
H A D | smb_opipe.c | 51 KSOCKET_SLEEP, sr->user_cr) != 0) in smb_opipe_alloc() 121 sizeof (saddr), sr->user_cr); in smb_opipe_connect() 175 &iocnt, sr->user_cr); in smb_opipe_send_userinfo() 182 &iocnt, sr->user_cr); in smb_opipe_send_userinfo()
|
H A D | smb_read.c | 104 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_read() 196 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_lock_and_read() 302 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_read_andx() 416 rc = smb_fsop_read(sr, sr->user_cr, node, &vdb->vdb_uio); in smb_common_read()
|
H A D | smb_process_exit.c | 80 sr->user_cr = smb_user_getcred(sr->uid_user); in smb_com_process_exit()
|
H A D | smb_seek.c | 110 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_seek()
|
H A D | smb_print.c | 292 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_print_file() 296 rc = smb_node_getattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_com_write_print_file()
|
H A D | smb_session_setup_andx.c | 287 sr->user_cr = user->u_cred; in smb_authenticate_core() 321 sr->user_cr = user->u_cred; in smb_authenticate_core() 357 sr->user_cr = user->u_cred; in smb_authenticate_core()
|
H A D | smb_sd.c | 138 error = smb_fsop_sdread(sr, sr->user_cr, node, &fs_sd); in smb_sd_read() 177 error = smb_fsop_sdwrite(sr, sr->user_cr, node, &fs_sd, 0); in smb_sd_write()
|
H A D | smb_query_fileinfo.c | 255 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_query_by_fid() 331 rc = smb_pathname_reduce(sr, sr->user_cr, pn->pn_path, in smb_query_by_path() 336 rc = smb_fsop_lookup_name(sr, sr->user_cr, SMB_FOLLOW_LINKS, in smb_query_by_path() 803 rc = smb_node_getattr(sr, node, sr->user_cr, sr->fid_ofile, in smb_query_fileinfo()
|
H A D | smb_tree_connect.c | 397 sr->user_cr = smb_user_getcred(sr->uid_user); in smb_com_tree_disconnect()
|
H A D | smb_nt_transact_security.c | 88 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_nt_transact_query_security_info() 177 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_nt_transact_set_security_info()
|
H A D | smb_nt_create_andx.c | 262 sr->user_cr = smb_user_getprivcred(sr->uid_user); in smb_com_nt_create_andx()
|
H A D | smb_trans2_find.c | 318 sr->user_cr = smb_user_getprivcred(sr->uid_user); in smb_com_trans2_find_first2() 460 sr->user_cr = smb_user_getprivcred(sr->uid_user); in smb_com_trans2_find_next2()
|
H A D | smb_nt_transact_create.c | 171 sr->user_cr = smb_user_getprivcred(sr->uid_user); in smb_nt_transact_create()
|
H A D | smb_lock.c | 114 smb_lock_posix_unlock(node, lock, sr->user_cr); in smb_unlock_range() 241 if (smb_fsop_frlock(node, lock, B_FALSE, sr->user_cr)) in smb_lock_range()
|
H A D | smb_fsinfo.c | 426 if ((rc = smb_fsop_statfs(sr->user_cr, node, &df)) != 0) { in smb_fssize()
|
H A D | smb_odir.c | 293 rc = smb_pathname_reduce(sr, sr->user_cr, path, in smb_odir_open() 307 if (smb_fsop_access(sr, sr->user_cr, dnode, FILE_LIST_DIRECTORY) != 0) { in smb_odir_open()
|
H A D | smb_dispatch.c | 534 sr->user_cr = zone_kcred(); in smb_dispatch_request() 687 sr->user_cr = smb_user_getcred(sr->uid_user); in smb_dispatch_request()
|
H A D | smb_server.c | 963 sr->user_cr = zone_kcred(); in smb_server_sharevp() 965 rc = smb_pathname_reduce(sr, sr->user_cr, shr_path, in smb_server_sharevp() 969 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS, in smb_server_sharevp()
|