Lines Matching refs:access
73 * Convert the access mask to the open mode (for use
76 * Note that opening a file for attribute only access
85 smb_fsop_amask_to_omode(uint32_t access)
89 if (access & (FILE_READ_DATA | FILE_EXECUTE |
93 if (access & (FILE_WRITE_DATA | FILE_APPEND_DATA |
97 if (access & FILE_APPEND_DATA)
935 uint32_t access = 0;
952 access |= READ_CONTROL;
956 access |= FILE_READ_ATTRIBUTES;
958 status = smb_ofile_access(sr->fid_ofile, cr, access);
1140 * SMB checks access on open and retains an access granted
1142 * not affect access to an open file.
1145 * - Check the ofile's access granted mask to see if the
1146 * rename is permitted - requires DELETE access.
1147 * - If the file system does access checking, set the
1221 uint32_t access;
1261 * SMB checks access on open and retains an access granted
1263 * not affect access to an open file.
1266 * - Check the ofile's access granted mask to see if the
1272 * - If the file system does access checking, set the
1278 access = 0;
1281 access |= FILE_WRITE_DATA;
1286 access |= WRITE_OWNER;
1291 access |= FILE_WRITE_ATTRIBUTES;
1293 status = smb_ofile_access(sr->fid_ofile, cr, access);
1321 * file content, so for access control this is a write.
1332 uint32_t access = FILE_WRITE_DATA;
1346 if (SMB_TREE_HAS_ACCESS(sr, access) == 0)
1367 * SMB checks access on open and retains an access granted
1369 * not affect access to an open file.
1372 * - Check the ofile's access granted mask to see if this
1375 status = smb_ofile_access(sr->fid_ofile, cr, access);
1588 * access has been requested on a named stream, an additional access
1597 int access = 0;
1626 * Perform VREAD access check on the named stream in case it
1664 /* Deny access based on the share access mask */
1678 access |= VWRITE;
1681 access |= VREAD;
1684 access |= VEXEC;
1686 error = smb_vop_access(snode->vp, access, 0, NULL, cr);
2037 int access = 0;
2048 access = READ_CONTROL;
2051 access |= ACCESS_SYSTEM_SECURITY;
2053 error = smb_ofile_access(sr->fid_ofile, cr, access);
2103 int access = 0;
2119 access = WRITE_DAC;
2122 access |= ACCESS_SYSTEM_SECURITY;
2124 error = smb_ofile_access(sr->fid_ofile, cr, access);
2228 * access check here.
2309 * Don't overwrite existing access entries
2361 int access = 0;
2376 access |= WRITE_OWNER;
2382 access |= WRITE_OWNER;
2386 access |= WRITE_DAC;
2389 access |= ACCESS_SYSTEM_SECURITY;
2392 error = smb_ofile_access(sr->fid_ofile, cr, access);
2394 error = smb_fsop_access(sr, cr, snode, access);
2517 int access = 0;
2547 smb_vop_eaccess(snode->vp, &access, 0, NULL, cr);
2548 access &= sr->tid_tree->t_access;
2552 if (access & VREAD)
2555 if (access & VEXEC)
2558 if (access & VWRITE)
2596 /* Allow access if the request is just for meta data */