Searched refs:pntsd (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/fs/ksmbd/ |
D | smbacl.c | 811 int parse_sec_desc(struct user_namespace *user_ns, struct smb_ntsd *pntsd, in parse_sec_desc() argument 817 char *end_of_acl = ((char *)pntsd) + acl_len; in parse_sec_desc() 821 if (!pntsd) in parse_sec_desc() 827 owner_sid_ptr = (struct smb_sid *)((char *)pntsd + in parse_sec_desc() 828 le32_to_cpu(pntsd->osidoffset)); in parse_sec_desc() 829 group_sid_ptr = (struct smb_sid *)((char *)pntsd + in parse_sec_desc() 830 le32_to_cpu(pntsd->gsidoffset)); in parse_sec_desc() 831 dacloffset = le32_to_cpu(pntsd->dacloffset); in parse_sec_desc() 832 dacl_ptr = (struct smb_acl *)((char *)pntsd + dacloffset); in parse_sec_desc() 835 pntsd->revision, pntsd->type, le32_to_cpu(pntsd->osidoffset), in parse_sec_desc() [all …]
|
D | smbacl.h | 193 int parse_sec_desc(struct user_namespace *user_ns, struct smb_ntsd *pntsd, 195 int build_sec_desc(struct user_namespace *user_ns, struct smb_ntsd *pntsd, 209 const struct path *path, struct smb_ntsd *pntsd, int ntsd_len,
|
D | vfs.c | 1433 struct smb_ntsd *pntsd, int len) in ksmbd_vfs_set_sd_xattr() argument 1448 pntsd->osidoffset = in ksmbd_vfs_set_sd_xattr() 1449 cpu_to_le32(le32_to_cpu(pntsd->osidoffset) + NDR_NTSD_OFFSETOF); in ksmbd_vfs_set_sd_xattr() 1450 pntsd->gsidoffset = in ksmbd_vfs_set_sd_xattr() 1451 cpu_to_le32(le32_to_cpu(pntsd->gsidoffset) + NDR_NTSD_OFFSETOF); in ksmbd_vfs_set_sd_xattr() 1452 pntsd->dacloffset = in ksmbd_vfs_set_sd_xattr() 1453 cpu_to_le32(le32_to_cpu(pntsd->dacloffset) + NDR_NTSD_OFFSETOF); in ksmbd_vfs_set_sd_xattr() 1455 acl.sd_buf = (char *)pntsd; in ksmbd_vfs_set_sd_xattr() 1507 struct smb_ntsd **pntsd) in ksmbd_vfs_get_sd_xattr() argument 1551 *pntsd = acl.sd_buf; in ksmbd_vfs_get_sd_xattr() [all …]
|
D | vfs.h | 151 struct smb_ntsd *pntsd, int len); 155 struct smb_ntsd **pntsd);
|
D | smb2pdu.c | 2983 struct smb_ntsd *pntsd; in smb2_open() local 2992 pntsd = kmalloc(sizeof(struct smb_ntsd) + in smb2_open() 2997 if (!pntsd) in smb2_open() 3001 pntsd, NULL, 0, in smb2_open() 3009 kfree(pntsd); in smb2_open() 3016 pntsd, in smb2_open() 3018 kfree(pntsd); in smb2_open() 5129 struct smb_ntsd *pntsd = (struct smb_ntsd *)rsp->Buffer, *ppntsd = NULL; in smb2_get_info_sec() local 5143 pntsd->revision = cpu_to_le16(1); in smb2_get_info_sec() 5144 pntsd->type = cpu_to_le16(SELF_RELATIVE | DACL_PROTECTED); in smb2_get_info_sec() [all …]
|
/linux-6.1.9/fs/cifs/ |
D | cifsacl.c | 513 static __u32 copy_sec_desc(const struct cifs_ntsd *pntsd, in copy_sec_desc() argument 523 pnntsd->revision = pntsd->revision; in copy_sec_desc() 524 pnntsd->type = pntsd->type; in copy_sec_desc() 534 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc() 535 le32_to_cpu(pntsd->osidoffset)); in copy_sec_desc() 543 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc() 544 le32_to_cpu(pntsd->gsidoffset)); in copy_sec_desc() 1189 struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr, in parse_sec_desc() argument 1195 char *end_of_acl = ((char *)pntsd) + acl_len; in parse_sec_desc() 1198 if (pntsd == NULL) in parse_sec_desc() [all …]
|
D | smb2ops.c | 3146 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl_by_fid() local 3158 cifsfid->volatile_fid, (void **)&pntsd, pacllen, in get_smb2_acl_by_fid() 3167 return pntsd; in get_smb2_acl_by_fid() 3175 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl_by_path() local 3219 fid.volatile_fid, (void **)&pntsd, pacllen, in get_smb2_acl_by_path() 3230 return pntsd; in get_smb2_acl_by_path() 3296 struct cifs_ntsd *pntsd = NULL; in get_smb2_acl() local 3304 pntsd = get_smb2_acl_by_fid(cifs_sb, &open_file->fid, pacllen, info); in get_smb2_acl() 3306 return pntsd; in get_smb2_acl()
|
D | cifssmb.c | 3481 struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) in CIFSSMBSetCIFSACL() argument 3519 if (pntsd && acllen) { in CIFSSMBSetCIFSACL() 3521 data_offset, pntsd, acllen); in CIFSSMBSetCIFSACL()
|