Lines Matching refs:access

87 smb_fsop_amask_to_omode(uint32_t access)  in smb_fsop_amask_to_omode()  argument
91 if (access & (FILE_READ_DATA | FILE_EXECUTE | in smb_fsop_amask_to_omode()
95 if (access & (FILE_WRITE_DATA | FILE_APPEND_DATA | in smb_fsop_amask_to_omode()
99 if (access & FILE_APPEND_DATA) in smb_fsop_amask_to_omode()
1015 uint32_t access = 0; in smb_fsop_getattr() local
1032 access |= READ_CONTROL; in smb_fsop_getattr()
1036 access |= FILE_READ_ATTRIBUTES; in smb_fsop_getattr()
1038 status = smb_ofile_access(sr->fid_ofile, cr, access); in smb_fsop_getattr()
1311 uint32_t access; in smb_fsop_setattr() local
1349 access = 0; in smb_fsop_setattr()
1352 access |= FILE_WRITE_DATA; in smb_fsop_setattr()
1357 access |= WRITE_OWNER; in smb_fsop_setattr()
1362 access |= FILE_WRITE_ATTRIBUTES; in smb_fsop_setattr()
1364 status = smb_ofile_access(sr->fid_ofile, cr, access); in smb_fsop_setattr()
1400 uint32_t access = FILE_WRITE_DATA; in smb_fsop_freesp() local
1414 if (SMB_TREE_HAS_ACCESS(sr, access) == 0) in smb_fsop_freesp()
1426 status = smb_ofile_access(sr->fid_ofile, cr, access); in smb_fsop_freesp()
1725 int access = 0; in smb_fsop_access() local
1808 access |= VWRITE; in smb_fsop_access()
1811 access |= VREAD; in smb_fsop_access()
1814 access |= VEXEC; in smb_fsop_access()
1816 error = smb_vop_access(snode->vp, access, 0, NULL, cr); in smb_fsop_access()
2243 int access = 0; in smb_fsop_aclread() local
2257 access = READ_CONTROL; in smb_fsop_aclread()
2260 access |= ACCESS_SYSTEM_SECURITY; in smb_fsop_aclread()
2262 error = smb_ofile_access(sr->fid_ofile, cr, access); in smb_fsop_aclread()
2302 int access = 0; in smb_fsop_aclwrite() local
2321 access = WRITE_DAC; in smb_fsop_aclwrite()
2324 access |= ACCESS_SYSTEM_SECURITY; in smb_fsop_aclwrite()
2326 error = smb_ofile_access(sr->fid_ofile, cr, access); in smb_fsop_aclwrite()
2563 int access = 0; in smb_fsop_sdwrite() local
2582 access |= WRITE_OWNER; in smb_fsop_sdwrite()
2588 access |= WRITE_OWNER; in smb_fsop_sdwrite()
2592 access |= WRITE_DAC; in smb_fsop_sdwrite()
2595 access |= ACCESS_SYSTEM_SECURITY; in smb_fsop_sdwrite()
2598 error = smb_ofile_access(sr->fid_ofile, cr, access); in smb_fsop_sdwrite()
2600 error = smb_fsop_access(sr, cr, snode, access); in smb_fsop_sdwrite()
2729 int access = 0; in smb_fsop_eaccess() local
2759 smb_vop_eaccess(snode->vp, &access, 0, NULL, cr); in smb_fsop_eaccess()
2760 access &= sr->tid_tree->t_access; in smb_fsop_eaccess()
2764 if (access & VREAD) in smb_fsop_eaccess()
2767 if (access & VEXEC) in smb_fsop_eaccess()
2770 if (access & VWRITE) in smb_fsop_eaccess()
2774 if (access & (VREAD | VWRITE)) in smb_fsop_eaccess()
2779 if (access & VWRITE) in smb_fsop_eaccess()