Lines Matching refs:pntsd_size
1007 int rc = 0, num_aces, dacloffset, pntsd_type, pntsd_size, acl_len, aces_size; in smb_inherit_dacl() local
1011 pntsd_size = ksmbd_vfs_get_sd_xattr(conn, user_ns, in smb_inherit_dacl()
1013 if (pntsd_size <= 0) in smb_inherit_dacl()
1016 if (!dacloffset || (dacloffset + sizeof(struct smb_acl) > pntsd_size)) { in smb_inherit_dacl()
1022 acl_len = pntsd_size - dacloffset; in smb_inherit_dacl()
1109 int powner_sid_size = 0, pgroup_sid_size = 0, pntsd_size; in smb_inherit_dacl() local
1134 pntsd_size = sizeof(struct smb_ntsd); in smb_inherit_dacl()
1143 pntsd_size += powner_sid_size; in smb_inherit_dacl()
1150 pntsd_size += pgroup_sid_size; in smb_inherit_dacl()
1162 pntsd_size += sizeof(struct smb_acl) + nt_size; in smb_inherit_dacl()
1166 path->dentry, pntsd, pntsd_size); in smb_inherit_dacl()
1197 int rc = 0, pntsd_size, acl_size, aces_size, pdacl_size, dacl_offset; in smb_check_perm_dacl() local
1209 pntsd_size = ksmbd_vfs_get_sd_xattr(conn, user_ns, in smb_check_perm_dacl()
1211 if (pntsd_size <= 0 || !pntsd) in smb_check_perm_dacl()
1216 (dacl_offset + sizeof(struct smb_acl) > pntsd_size)) in smb_check_perm_dacl()
1220 acl_size = pntsd_size - dacl_offset; in smb_check_perm_dacl()