/Linux-v4.19/net/netlabel/ |
D | netlabel_cipso_v4.c | 94 struct cipso_v4_doi *doi_def) in netlbl_cipsov4_add_common() argument 100 doi_def->doi = nla_get_u32(info->attrs[NLBL_CIPSOV4_A_DOI]); in netlbl_cipsov4_add_common() 111 doi_def->tags[iter++] = nla_get_u8(nla); in netlbl_cipsov4_add_common() 114 doi_def->tags[iter++] = CIPSO_V4_TAG_INVALID; in netlbl_cipsov4_add_common() 138 struct cipso_v4_doi *doi_def = NULL; in netlbl_cipsov4_add_std() local 154 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_cipsov4_add_std() 155 if (doi_def == NULL) in netlbl_cipsov4_add_std() 157 doi_def->map.std = kzalloc(sizeof(*doi_def->map.std), GFP_KERNEL); in netlbl_cipsov4_add_std() 158 if (doi_def->map.std == NULL) { in netlbl_cipsov4_add_std() 162 doi_def->type = CIPSO_V4_MAP_TRANS; in netlbl_cipsov4_add_std() [all …]
|
D | netlabel_calipso.c | 88 struct calipso_doi *doi_def = NULL; in netlbl_calipso_add_pass() local 90 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_calipso_add_pass() 91 if (!doi_def) in netlbl_calipso_add_pass() 93 doi_def->type = CALIPSO_MAP_PASS; in netlbl_calipso_add_pass() 94 doi_def->doi = nla_get_u32(info->attrs[NLBL_CALIPSO_A_DOI]); in netlbl_calipso_add_pass() 95 ret_val = calipso_doi_add(doi_def, audit_info); in netlbl_calipso_add_pass() 97 calipso_doi_free(doi_def); in netlbl_calipso_add_pass() 150 struct calipso_doi *doi_def; in netlbl_calipso_list() local 159 doi_def = calipso_doi_getdef(doi); in netlbl_calipso_list() 160 if (!doi_def) { in netlbl_calipso_list() [all …]
|
D | netlabel_calipso.h | 122 int calipso_doi_add(struct calipso_doi *doi_def, 124 void calipso_doi_free(struct calipso_doi *doi_def); 127 void calipso_doi_putdef(struct calipso_doi *doi_def); 129 int (*callback)(struct calipso_doi *doi_def, void *arg), 133 const struct calipso_doi *doi_def, 137 const struct calipso_doi *doi_def, 144 const struct calipso_doi *doi_def,
|
D | netlabel_kapi.c | 302 int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def, in netlbl_cfg_cipsov4_add() argument 305 return cipso_v4_doi_add(doi_def, audit_info); in netlbl_cfg_cipsov4_add() 344 struct cipso_v4_doi *doi_def; in netlbl_cfg_cipsov4_map_add() local 349 doi_def = cipso_v4_doi_getdef(doi); in netlbl_cfg_cipsov4_map_add() 350 if (doi_def == NULL) in netlbl_cfg_cipsov4_map_add() 364 entry->def.cipso = doi_def; in netlbl_cfg_cipsov4_map_add() 376 addrinfo->def.cipso = doi_def; in netlbl_cfg_cipsov4_map_add() 407 cipso_v4_doi_putdef(doi_def); in netlbl_cfg_cipsov4_map_add() 421 int netlbl_cfg_calipso_add(struct calipso_doi *doi_def, in netlbl_cfg_calipso_add() argument 425 return calipso_doi_add(doi_def, audit_info); in netlbl_cfg_calipso_add() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | cipso_ipv4.c | 396 int cipso_v4_doi_add(struct cipso_v4_doi *doi_def, in cipso_v4_doi_add() argument 405 doi = doi_def->doi; in cipso_v4_doi_add() 406 doi_type = doi_def->type; in cipso_v4_doi_add() 408 if (doi_def->doi == CIPSO_V4_DOI_UNKNOWN) in cipso_v4_doi_add() 411 switch (doi_def->tags[iter]) { in cipso_v4_doi_add() 416 if (doi_def->type != CIPSO_V4_MAP_PASS) in cipso_v4_doi_add() 420 if (doi_def->type != CIPSO_V4_MAP_LOCAL) in cipso_v4_doi_add() 432 refcount_set(&doi_def->refcount, 1); in cipso_v4_doi_add() 435 if (cipso_v4_doi_search(doi_def->doi)) { in cipso_v4_doi_add() 440 list_add_tail_rcu(&doi_def->list, &cipso_v4_doi_list); in cipso_v4_doi_add() [all …]
|
/Linux-v4.19/include/net/ |
D | cipso_ipv4.h | 129 int cipso_v4_doi_add(struct cipso_v4_doi *doi_def, 131 void cipso_v4_doi_free(struct cipso_v4_doi *doi_def); 134 void cipso_v4_doi_putdef(struct cipso_v4_doi *doi_def); 136 int (*callback) (struct cipso_v4_doi *doi_def, void *arg), 139 static inline int cipso_v4_doi_add(struct cipso_v4_doi *doi_def, in cipso_v4_doi_add() argument 145 static inline void cipso_v4_doi_free(struct cipso_v4_doi *doi_def) in cipso_v4_doi_free() argument 162 int (*callback) (struct cipso_v4_doi *doi_def, void *arg), in cipso_v4_doi_walk() 168 static inline int cipso_v4_doi_domhsh_add(struct cipso_v4_doi *doi_def, in cipso_v4_doi_domhsh_add() argument 174 static inline int cipso_v4_doi_domhsh_remove(struct cipso_v4_doi *doi_def, in cipso_v4_doi_domhsh_remove() argument 211 const struct cipso_v4_doi *doi_def, [all …]
|
D | netlabel.h | 248 int (*doi_add)(struct calipso_doi *doi_def, 250 void (*doi_free)(struct calipso_doi *doi_def); 253 void (*doi_putdef)(struct calipso_doi *doi_def); 255 int (*callback)(struct calipso_doi *doi_def, void *arg), 260 const struct calipso_doi *doi_def, 264 const struct calipso_doi *doi_def, 271 const struct calipso_doi *doi_def, 440 int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def, 448 int netlbl_cfg_calipso_add(struct calipso_doi *doi_def, 554 static inline int netlbl_cfg_cipsov4_add(struct cipso_v4_doi *doi_def, in netlbl_cfg_cipsov4_add() argument [all …]
|
/Linux-v4.19/net/ipv6/ |
D | calipso.c | 359 static int calipso_doi_add(struct calipso_doi *doi_def, in calipso_doi_add() argument 367 doi = doi_def->doi; in calipso_doi_add() 368 doi_type = doi_def->type; in calipso_doi_add() 370 if (doi_def->doi == CALIPSO_DOI_UNKNOWN) in calipso_doi_add() 373 refcount_set(&doi_def->refcount, 1); in calipso_doi_add() 376 if (calipso_doi_search(doi_def->doi)) { in calipso_doi_add() 381 list_add_tail_rcu(&doi_def->list, &calipso_doi_list); in calipso_doi_add() 414 static void calipso_doi_free(struct calipso_doi *doi_def) in calipso_doi_free() argument 416 kfree(doi_def); in calipso_doi_free() 431 struct calipso_doi *doi_def; in calipso_doi_free_rcu() local [all …]
|