/kernel/linux/linux-5.10/fs/cifs/ |
H A D | cifsacl.c | 523 static void copy_sec_desc(const struct cifs_ntsd *pntsd, in copy_sec_desc() argument 530 pnntsd->revision = pntsd->revision; in copy_sec_desc() 531 pnntsd->type = pntsd->type; in copy_sec_desc() 538 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc() 539 le32_to_cpu(pntsd->osidoffset)); in copy_sec_desc() 544 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc() 545 le32_to_cpu(pntsd->gsidoffset)); in copy_sec_desc() 944 struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr, in parse_sec_desc() 950 char *end_of_acl = ((char *)pntsd) + acl_len; in parse_sec_desc() 953 if (pntsd in parse_sec_desc() 943 parse_sec_desc(struct cifs_sb_info *cifs_sb, struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr, bool get_mode_from_special_sid) parse_sec_desc() argument 1002 build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd, __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, bool mode_from_sid, bool id_from_sid, int *aclflag) build_sec_desc() argument 1106 struct cifs_ntsd *pntsd = NULL; get_cifs_acl_by_fid() local 1130 struct cifs_ntsd *pntsd = NULL; get_cifs_acl_by_path() local 1174 struct cifs_ntsd *pntsd = NULL; get_cifs_acl() local 1242 struct cifs_ntsd *pntsd = NULL; cifs_acl_to_fattr() local 1291 struct cifs_ntsd *pntsd = NULL; /* acl obtained from server */ id_mode_to_cifs_acl() local [all...] |
H A D | smb2ops.c | 3218 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl_by_fid() local 3230 cifsfid->volatile_fid, (void **)&pntsd, pacllen); in get_smb2_acl_by_fid() 3238 return pntsd; in get_smb2_acl_by_fid() 3246 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl_by_path() local 3287 fid.volatile_fid, (void **)&pntsd, pacllen); in get_smb2_acl_by_path() 3297 return pntsd; in get_smb2_acl_by_path() 3361 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl() local 3369 pntsd = get_smb2_acl_by_fid(cifs_sb, &open_file->fid, pacllen); in get_smb2_acl() 3371 return pntsd; in get_smb2_acl()
|
H A D | cifssmb.c | 3982 struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) in CIFSSMBSetCIFSACL() 4020 if (pntsd && acllen) { in CIFSSMBSetCIFSACL() 4022 data_offset, pntsd, acllen); in CIFSSMBSetCIFSACL() 3981 CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) CIFSSMBSetCIFSACL() argument
|
/kernel/linux/linux-6.6/fs/smb/server/ |
H A D | smbacl.c | 814 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, in parse_sec_desc() argument 820 char *end_of_acl = ((char *)pntsd) + acl_len; in parse_sec_desc() 824 if (!pntsd) in parse_sec_desc() 830 owner_sid_ptr = (struct smb_sid *)((char *)pntsd + in parse_sec_desc() 831 le32_to_cpu(pntsd->osidoffset)); in parse_sec_desc() 832 group_sid_ptr = (struct smb_sid *)((char *)pntsd + in parse_sec_desc() 833 le32_to_cpu(pntsd->gsidoffset)); in parse_sec_desc() 834 dacloffset = le32_to_cpu(pntsd->dacloffset); in parse_sec_desc() 835 dacl_ptr = (struct smb_acl *)((char *)pntsd + dacloffset); in parse_sec_desc() 838 pntsd in parse_sec_desc() 895 build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, struct smb_ntsd *ppntsd, int ppntsd_size, int addition_info, __u32 *secdesclen, struct smb_fattr *fattr) build_sec_desc() argument 1109 struct smb_ntsd *pntsd; smb_inherit_dacl() local 1219 struct smb_ntsd *pntsd = NULL; smb_check_perm_dacl() local 1381 set_info_sec(struct ksmbd_conn *conn, struct ksmbd_tree_connect *tcon, const struct path *path, struct smb_ntsd *pntsd, int ntsd_len, bool type_check, bool get_write) set_info_sec() argument [all...] |
H A D | smbacl.h | 193 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 195 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 209 const struct path *path, struct smb_ntsd *pntsd, int ntsd_len,
|
H A D | vfs.c | 1445 struct smb_ntsd *pntsd, int len, in ksmbd_vfs_set_sd_xattr() 1462 pntsd->osidoffset = in ksmbd_vfs_set_sd_xattr() 1463 cpu_to_le32(le32_to_cpu(pntsd->osidoffset) + NDR_NTSD_OFFSETOF); in ksmbd_vfs_set_sd_xattr() 1464 pntsd->gsidoffset = in ksmbd_vfs_set_sd_xattr() 1465 cpu_to_le32(le32_to_cpu(pntsd->gsidoffset) + NDR_NTSD_OFFSETOF); in ksmbd_vfs_set_sd_xattr() 1466 pntsd->dacloffset = in ksmbd_vfs_set_sd_xattr() 1467 cpu_to_le32(le32_to_cpu(pntsd->dacloffset) + NDR_NTSD_OFFSETOF); in ksmbd_vfs_set_sd_xattr() 1469 acl.sd_buf = (char *)pntsd; in ksmbd_vfs_set_sd_xattr() 1521 struct smb_ntsd **pntsd) in ksmbd_vfs_get_sd_xattr() 1565 *pntsd in ksmbd_vfs_get_sd_xattr() 1442 ksmbd_vfs_set_sd_xattr(struct ksmbd_conn *conn, struct mnt_idmap *idmap, const struct path *path, struct smb_ntsd *pntsd, int len, bool get_write) ksmbd_vfs_set_sd_xattr() argument 1518 ksmbd_vfs_get_sd_xattr(struct ksmbd_conn *conn, struct mnt_idmap *idmap, struct dentry *dentry, struct smb_ntsd **pntsd) ksmbd_vfs_get_sd_xattr() argument [all...] |
H A D | vfs.h | 149 struct smb_ntsd *pntsd, int len, 154 struct smb_ntsd **pntsd);
|
H A D | smb2pdu.c | 3125 struct smb_ntsd *pntsd; in smb2_open() local 3134 pntsd = kmalloc(sizeof(struct smb_ntsd) + in smb2_open() 3139 if (!pntsd) { in smb2_open() 3146 pntsd, NULL, 0, in smb2_open() 3154 kfree(pntsd); in smb2_open() 3161 pntsd, in smb2_open() 3164 kfree(pntsd); in smb2_open() 5222 struct smb_ntsd *pntsd = (struct smb_ntsd *)rsp->Buffer, *ppntsd = NULL; in smb2_get_info_sec() local 5236 pntsd->revision = cpu_to_le16(1); in smb2_get_info_sec() 5237 pntsd in smb2_get_info_sec() 6022 struct smb_ntsd *pntsd = (struct smb_ntsd *)buffer; smb2_set_info_sec() local [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | cifsacl.c | 518 static __u32 copy_sec_desc(const struct cifs_ntsd *pntsd, in copy_sec_desc() argument 528 pnntsd->revision = pntsd->revision; in copy_sec_desc() 529 pnntsd->type = pntsd->type; in copy_sec_desc() 539 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc() 540 le32_to_cpu(pntsd->osidoffset)); in copy_sec_desc() 548 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc() 549 le32_to_cpu(pntsd->gsidoffset)); in copy_sec_desc() 1194 struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr, in parse_sec_desc() 1200 char *end_of_acl = ((char *)pntsd) + acl_len; in parse_sec_desc() 1203 if (pntsd in parse_sec_desc() 1193 parse_sec_desc(struct cifs_sb_info *cifs_sb, struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr, bool get_mode_from_special_sid) parse_sec_desc() argument 1252 build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd, __u32 secdesclen, __u32 *pnsecdesclen, __u64 *pnmode, kuid_t uid, kgid_t gid, bool mode_from_sid, bool id_from_sid, int *aclflag) build_sec_desc() argument 1392 struct cifs_ntsd *pntsd = NULL; get_cifs_acl_by_fid() local 1416 struct cifs_ntsd *pntsd = NULL; get_cifs_acl_by_path() local 1461 struct cifs_ntsd *pntsd = NULL; get_cifs_acl() local 1531 struct cifs_ntsd *pntsd = NULL; cifs_acl_to_fattr() local 1584 struct cifs_ntsd *pntsd = NULL; /* acl obtained from server */ id_mode_to_cifs_acl() local [all...] |
H A D | smb2ops.c | 3139 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl_by_fid() local 3151 cifsfid->volatile_fid, (void **)&pntsd, pacllen, in get_smb2_acl_by_fid() 3160 return pntsd; in get_smb2_acl_by_fid() 3168 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl_by_path() local 3216 fid.volatile_fid, (void **)&pntsd, pacllen, in get_smb2_acl_by_path() 3227 return pntsd; in get_smb2_acl_by_path() 3294 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl() local 3302 pntsd = get_smb2_acl_by_fid(cifs_sb, &open_file->fid, pacllen, info); in get_smb2_acl() 3304 return pntsd; in get_smb2_acl()
|
H A D | cifssmb.c | 3468 struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) in CIFSSMBSetCIFSACL() 3506 if (pntsd && acllen) { in CIFSSMBSetCIFSACL() 3508 data_offset, pntsd, acllen); in CIFSSMBSetCIFSACL() 3467 CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) CIFSSMBSetCIFSACL() argument
|