Lines Matching refs:entry
102 struct netlbl_dom_map *entry;
107 entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
108 if (entry == NULL)
111 entry->domain = kstrdup(domain, GFP_ATOMIC);
112 if (entry->domain == NULL)
115 entry->family = family;
118 entry->def.type = NETLBL_NLTYPE_UNLABELED;
169 entry->def.addrsel = addrmap;
170 entry->def.type = NETLBL_NLTYPE_ADDRSELECT;
176 ret_val = netlbl_domhsh_add(entry, audit_info);
183 kfree(entry->domain);
184 kfree(entry);
199 * @secid: LSM secid value for the entry
331 struct netlbl_dom_map *entry;
339 entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
340 if (entry == NULL)
342 entry->family = AF_INET;
344 entry->domain = kstrdup(domain, GFP_ATOMIC);
345 if (entry->domain == NULL)
350 entry->def.cipso = doi_def;
351 entry->def.type = NETLBL_NLTYPE_CIPSOV4;
371 entry->def.addrsel = addrmap;
372 entry->def.type = NETLBL_NLTYPE_ADDRSELECT;
378 ret_val = netlbl_domhsh_add(entry, audit_info);
389 kfree(entry->domain);
391 kfree(entry);
457 struct netlbl_dom_map *entry;
465 entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
466 if (entry == NULL)
468 entry->family = AF_INET6;
470 entry->domain = kstrdup(domain, GFP_ATOMIC);
471 if (entry->domain == NULL)
476 entry->def.calipso = doi_def;
477 entry->def.type = NETLBL_NLTYPE_CALIPSO;
501 entry->def.addrsel = addrmap;
502 entry->def.type = NETLBL_NLTYPE_ADDRSELECT;
508 ret_val = netlbl_domhsh_add(entry, audit_info);
519 kfree(entry->domain);
521 kfree(entry);
1114 struct netlbl_dommap_def *entry;
1120 entry = netlbl_domhsh_getentry_af4(secattr->domain,
1122 if (entry == NULL) {
1126 switch (entry->type) {
1129 entry->cipso, secattr);
1144 entry = netlbl_domhsh_getentry_af6(secattr->domain,
1146 if (entry == NULL) {
1150 switch (entry->type) {
1153 entry->calipso, secattr);
1189 struct netlbl_dommap_def *entry;
1195 entry = netlbl_domhsh_getentry_af4(secattr->domain,
1197 if (entry == NULL) {
1201 switch (entry->type) {
1204 entry->cipso, secattr);
1216 entry = netlbl_domhsh_getentry_af6(secattr->domain,
1218 if (entry == NULL) {
1222 switch (entry->type) {
1225 entry->calipso, secattr);
1287 struct netlbl_dommap_def *entry;
1293 entry = netlbl_domhsh_getentry_af4(secattr->domain,
1295 if (entry == NULL) {
1299 switch (entry->type) {
1301 ret_val = cipso_v4_skbuff_setattr(skb, entry->cipso,
1316 entry = netlbl_domhsh_getentry_af6(secattr->domain,
1318 if (entry == NULL) {
1322 switch (entry->type) {
1324 ret_val = calipso_skbuff_setattr(skb, entry->calipso,
1424 * netlbl_cache_add - Add an entry to a NetLabel protocol cache