/kernel/linux/linux-5.10/net/netlabel/ |
D | netlabel_cipso_v4.c | 80 struct cipso_v4_doi *doi_def) in netlbl_cipsov4_add_common() argument 86 doi_def->doi = nla_get_u32(info->attrs[NLBL_CIPSOV4_A_DOI]); in netlbl_cipsov4_add_common() 98 doi_def->tags[iter++] = nla_get_u8(nla); in netlbl_cipsov4_add_common() 101 doi_def->tags[iter++] = CIPSO_V4_TAG_INVALID; in netlbl_cipsov4_add_common() 125 struct cipso_v4_doi *doi_def = NULL; in netlbl_cipsov4_add_std() local 142 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_cipsov4_add_std() 143 if (doi_def == NULL) in netlbl_cipsov4_add_std() 145 doi_def->map.std = kzalloc(sizeof(*doi_def->map.std), GFP_KERNEL); in netlbl_cipsov4_add_std() 146 if (doi_def->map.std == NULL) { in netlbl_cipsov4_add_std() 147 kfree(doi_def); in netlbl_cipsov4_add_std() [all …]
|
D | netlabel_calipso.c | 74 struct calipso_doi *doi_def = NULL; in netlbl_calipso_add_pass() local 76 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_calipso_add_pass() 77 if (!doi_def) in netlbl_calipso_add_pass() 79 doi_def->type = CALIPSO_MAP_PASS; in netlbl_calipso_add_pass() 80 doi_def->doi = nla_get_u32(info->attrs[NLBL_CALIPSO_A_DOI]); in netlbl_calipso_add_pass() 81 ret_val = calipso_doi_add(doi_def, audit_info); in netlbl_calipso_add_pass() 83 calipso_doi_free(doi_def); in netlbl_calipso_add_pass() 136 struct calipso_doi *doi_def; in netlbl_calipso_list() local 145 doi_def = calipso_doi_getdef(doi); in netlbl_calipso_list() 146 if (!doi_def) { in netlbl_calipso_list() [all …]
|
D | netlabel_calipso.h | 108 int calipso_doi_add(struct calipso_doi *doi_def, 110 void calipso_doi_free(struct calipso_doi *doi_def); 113 void calipso_doi_putdef(struct calipso_doi *doi_def); 115 int (*callback)(struct calipso_doi *doi_def, void *arg), 119 const struct calipso_doi *doi_def, 123 const struct calipso_doi *doi_def, 130 const struct calipso_doi *doi_def,
|
D | netlabel_kapi.c | 288 int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def, in netlbl_cfg_cipsov4_add() argument 291 return cipso_v4_doi_add(doi_def, audit_info); in netlbl_cfg_cipsov4_add() 330 struct cipso_v4_doi *doi_def; in netlbl_cfg_cipsov4_map_add() local 335 doi_def = cipso_v4_doi_getdef(doi); in netlbl_cfg_cipsov4_map_add() 336 if (doi_def == NULL) in netlbl_cfg_cipsov4_map_add() 350 entry->def.cipso = doi_def; in netlbl_cfg_cipsov4_map_add() 362 addrinfo->def.cipso = doi_def; in netlbl_cfg_cipsov4_map_add() 393 cipso_v4_doi_putdef(doi_def); in netlbl_cfg_cipsov4_map_add() 407 int netlbl_cfg_calipso_add(struct calipso_doi *doi_def, in netlbl_cfg_calipso_add() argument 411 return calipso_doi_add(doi_def, audit_info); in netlbl_cfg_calipso_add() [all …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | cipso_ipv4.c | 383 int cipso_v4_doi_add(struct cipso_v4_doi *doi_def, in cipso_v4_doi_add() argument 392 doi = doi_def->doi; in cipso_v4_doi_add() 393 doi_type = doi_def->type; in cipso_v4_doi_add() 395 if (doi_def->doi == CIPSO_V4_DOI_UNKNOWN) in cipso_v4_doi_add() 398 switch (doi_def->tags[iter]) { in cipso_v4_doi_add() 403 if (doi_def->type != CIPSO_V4_MAP_PASS) in cipso_v4_doi_add() 407 if (doi_def->type != CIPSO_V4_MAP_LOCAL) in cipso_v4_doi_add() 419 refcount_set(&doi_def->refcount, 1); in cipso_v4_doi_add() 422 if (cipso_v4_doi_search(doi_def->doi)) { in cipso_v4_doi_add() 427 list_add_tail_rcu(&doi_def->list, &cipso_v4_doi_list); in cipso_v4_doi_add() [all …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | calipso.c | 87 static void calipso_doi_putdef(struct calipso_doi *doi_def); 348 static int calipso_doi_add(struct calipso_doi *doi_def, in calipso_doi_add() argument 356 doi = doi_def->doi; in calipso_doi_add() 357 doi_type = doi_def->type; in calipso_doi_add() 359 if (doi_def->doi == CALIPSO_DOI_UNKNOWN) in calipso_doi_add() 362 refcount_set(&doi_def->refcount, 1); in calipso_doi_add() 365 if (calipso_doi_search(doi_def->doi)) { in calipso_doi_add() 370 list_add_tail_rcu(&doi_def->list, &calipso_doi_list); in calipso_doi_add() 403 static void calipso_doi_free(struct calipso_doi *doi_def) in calipso_doi_free() argument 405 kfree(doi_def); in calipso_doi_free() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | cipso_ipv4.h | 115 int cipso_v4_doi_add(struct cipso_v4_doi *doi_def, 117 void cipso_v4_doi_free(struct cipso_v4_doi *doi_def); 120 void cipso_v4_doi_putdef(struct cipso_v4_doi *doi_def); 122 int (*callback) (struct cipso_v4_doi *doi_def, void *arg), 125 static inline int cipso_v4_doi_add(struct cipso_v4_doi *doi_def, in cipso_v4_doi_add() argument 131 static inline void cipso_v4_doi_free(struct cipso_v4_doi *doi_def) in cipso_v4_doi_free() argument 148 int (*callback) (struct cipso_v4_doi *doi_def, void *arg), in cipso_v4_doi_walk() 185 const struct cipso_v4_doi *doi_def, 190 const struct cipso_v4_doi *doi_def, 194 const struct cipso_v4_doi *doi_def, [all …]
|
D | netlabel.h | 234 int (*doi_add)(struct calipso_doi *doi_def, 236 void (*doi_free)(struct calipso_doi *doi_def); 239 void (*doi_putdef)(struct calipso_doi *doi_def); 241 int (*callback)(struct calipso_doi *doi_def, void *arg), 246 const struct calipso_doi *doi_def, 250 const struct calipso_doi *doi_def, 257 const struct calipso_doi *doi_def, 426 int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def, 434 int netlbl_cfg_calipso_add(struct calipso_doi *doi_def, 540 static inline int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def, in netlbl_cfg_cipsov4_add() argument [all …]
|