Lines Matching refs:pntsd_size
1010 int rc = 0, num_aces, dacloffset, pntsd_type, pntsd_size, acl_len, aces_size; in smb_inherit_dacl() local
1014 pntsd_size = ksmbd_vfs_get_sd_xattr(conn, idmap, in smb_inherit_dacl()
1016 if (pntsd_size <= 0) in smb_inherit_dacl()
1019 if (!dacloffset || (dacloffset + sizeof(struct smb_acl) > pntsd_size)) { in smb_inherit_dacl()
1025 acl_len = pntsd_size - dacloffset; in smb_inherit_dacl()
1112 int powner_sid_size = 0, pgroup_sid_size = 0, pntsd_size; in smb_inherit_dacl() local
1139 pntsd_size = sizeof(struct smb_ntsd); in smb_inherit_dacl()
1169 pntsd_size += powner_sid_size; in smb_inherit_dacl()
1176 pntsd_size += pgroup_sid_size; in smb_inherit_dacl()
1188 pntsd_size += sizeof(struct smb_acl) + nt_size; in smb_inherit_dacl()
1191 ksmbd_vfs_set_sd_xattr(conn, idmap, path, pntsd, pntsd_size, false); in smb_inherit_dacl()
1222 int rc = 0, pntsd_size, acl_size, aces_size, pdacl_size, dacl_offset; in smb_check_perm_dacl() local
1234 pntsd_size = ksmbd_vfs_get_sd_xattr(conn, idmap, in smb_check_perm_dacl()
1236 if (pntsd_size <= 0 || !pntsd) in smb_check_perm_dacl()
1241 (dacl_offset + sizeof(struct smb_acl) > pntsd_size)) in smb_check_perm_dacl()
1245 acl_size = pntsd_size - dacl_offset; in smb_check_perm_dacl()