Home
last modified time | relevance | path

Searched refs:pntsd (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/fs/smb/server/
H A Dsmbacl.c839 if (!pntsd) in parse_sec_desc()
853 pntsd->revision, pntsd->type, le32_to_cpu(pntsd->osidoffset), in parse_sec_desc()
952 pntsd->sacloffset = 0; in build_sec_desc()
1161 if (!pntsd) { in smb_inherit_dacl()
1178 kfree(pntsd); in smb_inherit_dacl()
1185 kfree(pntsd); in smb_inherit_dacl()
1192 kfree(pntsd); in smb_inherit_dacl()
1213 pdacl = (struct smb_acl *)((char *)pntsd + le32_to_cpu(pntsd->dacloffset)); in smb_inherit_dacl()
1223 kfree(pntsd); in smb_inherit_dacl()
1278 pdacl = (struct smb_acl *)((char *)pntsd + le32_to_cpu(pntsd->dacloffset)); in smb_check_perm_dacl()
[all …]
H A Dsmbacl.h84 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
86 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
100 const struct path *path, struct smb_ntsd *pntsd, int ntsd_len,
H A Dvfs.c1452 struct smb_ntsd *pntsd, int len, in ksmbd_vfs_set_sd_xattr() argument
1469 pntsd->osidoffset = in ksmbd_vfs_set_sd_xattr()
1471 pntsd->gsidoffset = in ksmbd_vfs_set_sd_xattr()
1473 pntsd->dacloffset = in ksmbd_vfs_set_sd_xattr()
1476 acl.sd_buf = (char *)pntsd; in ksmbd_vfs_set_sd_xattr()
1528 struct smb_ntsd **pntsd) in ksmbd_vfs_get_sd_xattr() argument
1572 *pntsd = acl.sd_buf; in ksmbd_vfs_get_sd_xattr()
1578 (*pntsd)->osidoffset = cpu_to_le32(le32_to_cpu((*pntsd)->osidoffset) - in ksmbd_vfs_get_sd_xattr()
1580 (*pntsd)->gsidoffset = cpu_to_le32(le32_to_cpu((*pntsd)->gsidoffset) - in ksmbd_vfs_get_sd_xattr()
1582 (*pntsd)->dacloffset = cpu_to_le32(le32_to_cpu((*pntsd)->dacloffset) - in ksmbd_vfs_get_sd_xattr()
[all …]
H A Dvfs.h150 struct smb_ntsd *pntsd, int len,
155 struct smb_ntsd **pntsd);
H A Dsmb2pdu.c3367 struct smb_ntsd *pntsd; in smb2_open() local
3381 if (!pntsd) { in smb2_open()
3388 pntsd, NULL, 0, in smb2_open()
3396 kfree(pntsd); in smb2_open()
3403 pntsd, in smb2_open()
3406 kfree(pntsd); in smb2_open()
5628 pntsd->revision = cpu_to_le16(1); in smb2_get_info_sec()
5630 pntsd->osidoffset = 0; in smb2_get_info_sec()
5631 pntsd->gsidoffset = 0; in smb2_get_info_sec()
5632 pntsd->sacloffset = 0; in smb2_get_info_sec()
[all …]
/linux-6.15/fs/smb/client/
H A Dcifsacl.c1230 if (pntsd == NULL) in parse_sec_desc()
1240 pntsd->revision, pntsd->type, le32_to_cpu(pntsd->osidoffset), in parse_sec_desc()
1437 return pntsd; in get_cifs_acl_by_fid()
1483 return pntsd; in get_cifs_acl_by_path()
1501 return pntsd; in get_cifs_acl()
1586 if (IS_ERR(pntsd)) { in cifs_acl_to_fattr()
1591 kfree(pntsd); in cifs_acl_to_fattr()
1595 kfree(pntsd); in cifs_acl_to_fattr()
1642 if (IS_ERR(pntsd)) { in id_mode_to_cifs_acl()
1690 kfree(pntsd); in id_mode_to_cifs_acl()
[all …]
H A Dcifsproto.h249 extern int set_cifs_acl(struct smb_ntsd *pntsd, __u32 len, struct inode *ino,
571 struct smb_ntsd *pntsd, __u32 len, int aclflag);
H A Dsmb2ops.c3046 struct smb_ntsd *pntsd = NULL; in get_smb2_acl_by_fid() local
3058 cifsfid->volatile_fid, (void **)&pntsd, pacllen, in get_smb2_acl_by_fid()
3067 return pntsd; in get_smb2_acl_by_fid()
3075 struct smb_ntsd *pntsd = NULL; in get_smb2_acl_by_path() local
3123 fid.volatile_fid, (void **)&pntsd, pacllen, in get_smb2_acl_by_path()
3134 return pntsd; in get_smb2_acl_by_path()
3201 struct smb_ntsd *pntsd = NULL; in get_smb2_acl() local
3209 pntsd = get_smb2_acl_by_fid(cifs_sb, &open_file->fid, pacllen, info); in get_smb2_acl()
3211 return pntsd; in get_smb2_acl()
H A Dcifsglob.h580 int (*set_acl)(struct smb_ntsd *pntsd, __u32 len, struct inode *ino, const char *path,
H A Dcifssmb.c3492 struct smb_ntsd *pntsd, __u32 acllen, int aclflag) in CIFSSMBSetCIFSACL() argument
3530 if (pntsd && acllen) { in CIFSSMBSetCIFSACL()
3532 data_offset, pntsd, acllen); in CIFSSMBSetCIFSACL()