Home
last modified time | relevance | path

Searched refs:daccess (Results 1 – 7 of 7) sorted by relevance

/fs/ksmbd/
Dsmb_common.c634 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() argument
789 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 …]
Dvfs.c140 struct dentry *dentry, __le32 *daccess) in ksmbd_vfs_query_maximal_access() argument
142 *daccess = cpu_to_le32(FILE_READ_ATTRIBUTES | READ_CONTROL); in ksmbd_vfs_query_maximal_access()
145 *daccess |= cpu_to_le32(WRITE_DAC | WRITE_OWNER | SYNCHRONIZE | in ksmbd_vfs_query_maximal_access()
151 *daccess |= FILE_READ_DATA_LE | FILE_READ_EA_LE; in ksmbd_vfs_query_maximal_access()
154 *daccess |= FILE_EXECUTE_LE; in ksmbd_vfs_query_maximal_access()
157 *daccess |= FILE_DELETE_LE; in ksmbd_vfs_query_maximal_access()
384 if (!(fp->daccess & (FILE_READ_DATA_LE | FILE_EXECUTE_LE))) { in ksmbd_vfs_read()
495 if (!(fp->daccess & FILE_WRITE_DATA_LE)) { in ksmbd_vfs_write()
727 if (parent_fp->daccess & FILE_DELETE_LE) { in ksmbd_vfs_rename()
1767 if (!(src_fp->daccess & (FILE_READ_DATA_LE | FILE_EXECUTE_LE))) { in ksmbd_vfs_copy_file_ranges()
[all …]
Dsmb2pdu.c2678 __le32 daccess, maximal_access = 0; in smb2_open() local
2958 daccess = smb_map_generic_desired_access(req->DesiredAccess); in smb2_open()
2961 rc = smb_check_perm_dacl(conn, &path, &daccess, in smb2_open()
2967 if (daccess & FILE_MAXIMAL_ACCESS_LE) { in smb2_open()
2969 daccess = cpu_to_le32(GENERIC_ALL_FLAGS); in smb2_open()
2973 &daccess); in smb2_open()
2976 maximal_access = daccess; in smb2_open()
2979 open_flags = smb2_create_open_flags(file_present, daccess, in smb2_open()
3027 if (daccess & ~(FILE_READ_ATTRIBUTES_LE | FILE_READ_CONTROL_LE)) { in smb2_open()
3034 if ((daccess & FILE_DELETE_LE) || in smb2_open()
[all …]
Dvfs_cache.h83 __le32 daccess; member
Dsmbacl.h155 __le32 daccess; member
Dvfs.h115 struct dentry *dentry, __le32 *daccess);
Dsmb_common.h504 __le32 smb_map_generic_desired_access(__le32 daccess);