Searched refs:daccess (Results 1 – 7 of 7) sorted by relevance
634 prev_fp->saccess, curr_fp->daccess); in smb_shared_mode_error()662 curr_fp->daccess & FILE_DELETE_LE) { in ksmbd_smb_check_shared_mode()678 curr_fp->daccess & (FILE_EXECUTE_LE | FILE_READ_DATA_LE)) { in ksmbd_smb_check_shared_mode()687 curr_fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE)) { in ksmbd_smb_check_shared_mode()695 if (prev_fp->daccess & (FILE_EXECUTE_LE | FILE_READ_DATA_LE) && in ksmbd_smb_check_shared_mode()704 if (prev_fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE) && in ksmbd_smb_check_shared_mode()713 if (prev_fp->daccess & FILE_DELETE_LE && in ksmbd_smb_check_shared_mode()787 __le32 smb_map_generic_desired_access(__le32 daccess) in smb_map_generic_desired_access() argument789 if (daccess & FILE_GENERIC_READ_LE) { in smb_map_generic_desired_access()790 daccess |= cpu_to_le32(GENERIC_READ_FLAGS); in smb_map_generic_desired_access()[all …]
141 struct dentry *dentry, __le32 *daccess) in ksmbd_vfs_query_maximal_access() argument143 *daccess = cpu_to_le32(FILE_READ_ATTRIBUTES | READ_CONTROL); in ksmbd_vfs_query_maximal_access()146 *daccess |= cpu_to_le32(WRITE_DAC | WRITE_OWNER | SYNCHRONIZE | in ksmbd_vfs_query_maximal_access()152 *daccess |= FILE_READ_DATA_LE | FILE_READ_EA_LE; in ksmbd_vfs_query_maximal_access()155 *daccess |= FILE_EXECUTE_LE; in ksmbd_vfs_query_maximal_access()158 *daccess |= FILE_DELETE_LE; in ksmbd_vfs_query_maximal_access()385 if (!(fp->daccess & (FILE_READ_DATA_LE | FILE_EXECUTE_LE))) { in ksmbd_vfs_read()496 if (!(fp->daccess & FILE_WRITE_DATA_LE)) { in ksmbd_vfs_write()728 if (parent_fp->daccess & FILE_DELETE_LE) { in ksmbd_vfs_rename()1766 if (!(src_fp->daccess & (FILE_READ_DATA_LE | FILE_EXECUTE_LE))) { in ksmbd_vfs_copy_file_ranges()[all …]
2679 __le32 daccess, maximal_access = 0; in smb2_open() local2959 daccess = smb_map_generic_desired_access(req->DesiredAccess); in smb2_open()2962 rc = smb_check_perm_dacl(conn, &path, &daccess, in smb2_open()2968 if (daccess & FILE_MAXIMAL_ACCESS_LE) { in smb2_open()2970 daccess = cpu_to_le32(GENERIC_ALL_FLAGS); in smb2_open()2974 &daccess); in smb2_open()2977 maximal_access = daccess; in smb2_open()2980 open_flags = smb2_create_open_flags(file_present, daccess, in smb2_open()3028 if (daccess & ~(FILE_READ_ATTRIBUTES_LE | FILE_READ_CONTROL_LE)) { in smb2_open()3035 if ((daccess & FILE_DELETE_LE) || in smb2_open()[all …]
83 __le32 daccess; member
155 __le32 daccess; member
76 struct dentry *dentry, __le32 *daccess);
457 __le32 smb_map_generic_desired_access(__le32 daccess);