Searched refs:doi_def (Results 1 – 6 of 6) sorted by relevance
/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 | 96 struct calipso_doi *doi_def = NULL; in netlbl_calipso_add_pass() local 98 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_calipso_add_pass() 99 if (!doi_def) in netlbl_calipso_add_pass() 101 doi_def->type = CALIPSO_MAP_PASS; in netlbl_calipso_add_pass() 102 doi_def->doi = nla_get_u32(info->attrs[NLBL_CALIPSO_A_DOI]); in netlbl_calipso_add_pass() 103 ret_val = calipso_doi_add(doi_def, audit_info); in netlbl_calipso_add_pass() 105 calipso_doi_free(doi_def); in netlbl_calipso_add_pass() 161 struct calipso_doi *doi_def; in netlbl_calipso_list() local 170 doi_def = calipso_doi_getdef(doi); in netlbl_calipso_list() 171 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 …]
|
/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 …]
|
/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 …]
|