secattr 174 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr); secattr 182 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr) secattr 195 include/net/cipso_ipv4.h struct netlbl_lsm_secattr *secattr); secattr 198 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr); secattr 200 include/net/cipso_ipv4.h int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr); secattr 203 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr); secattr 207 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr); secattr 210 include/net/cipso_ipv4.h struct netlbl_lsm_secattr *secattr); secattr 222 include/net/cipso_ipv4.h struct netlbl_lsm_secattr *secattr) secattr 229 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr) secattr 239 include/net/cipso_ipv4.h struct netlbl_lsm_secattr *secattr) secattr 246 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr) secattr 258 include/net/cipso_ipv4.h const struct netlbl_lsm_secattr *secattr) secattr 269 include/net/cipso_ipv4.h struct netlbl_lsm_secattr *secattr) secattr 244 include/net/netlabel.h struct netlbl_lsm_secattr *secattr); secattr 247 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 251 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 254 include/net/netlabel.h struct netlbl_lsm_secattr *secattr); secattr 258 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 262 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 347 include/net/netlabel.h static inline void netlbl_secattr_init(struct netlbl_lsm_secattr *secattr) secattr 349 include/net/netlabel.h memset(secattr, 0, sizeof(*secattr)); secattr 361 include/net/netlabel.h static inline void netlbl_secattr_destroy(struct netlbl_lsm_secattr *secattr) secattr 363 include/net/netlabel.h if (secattr->flags & NETLBL_SECATTR_FREE_DOMAIN) secattr 364 include/net/netlabel.h kfree(secattr->domain); secattr 365 include/net/netlabel.h if (secattr->flags & NETLBL_SECATTR_CACHE) secattr 366 include/net/netlabel.h netlbl_secattr_cache_free(secattr->cache); secattr 367 include/net/netlabel.h if (secattr->flags & NETLBL_SECATTR_MLS_CAT) secattr 368 include/net/netlabel.h netlbl_catmap_free(secattr->attr.mls.cat); secattr 393 include/net/netlabel.h static inline void netlbl_secattr_free(struct netlbl_lsm_secattr *secattr) secattr 395 include/net/netlabel.h netlbl_secattr_destroy(secattr); secattr 396 include/net/netlabel.h kfree(secattr); secattr 474 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 477 include/net/netlabel.h struct netlbl_lsm_secattr *secattr); secattr 480 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 482 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 486 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 489 include/net/netlabel.h struct netlbl_lsm_secattr *secattr); secattr 497 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr); secattr 618 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr) secattr 626 include/net/netlabel.h struct netlbl_lsm_secattr *secattr) secattr 632 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr) secattr 637 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr) secattr 647 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr) secattr 653 include/net/netlabel.h struct netlbl_lsm_secattr *secattr) secattr 668 include/net/netlabel.h const struct netlbl_lsm_secattr *secattr) secattr 236 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 255 net/ipv4/cipso_ipv4.c secattr->cache = entry->lsm_data; secattr 256 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_CACHE; secattr 257 net/ipv4/cipso_ipv4.c secattr->type = NETLBL_NLTYPE_CIPSOV4; secattr 298 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr) secattr 321 net/ipv4/cipso_ipv4.c refcount_inc(&secattr->cache->refcount); secattr 322 net/ipv4/cipso_ipv4.c entry->lsm_data = secattr->cache; secattr 793 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 810 net/ipv4/cipso_ipv4.c host_spot = netlbl_catmap_walk(secattr->attr.mls.cat, secattr 856 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 893 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, secattr 951 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 959 net/ipv4/cipso_ipv4.c cat = netlbl_catmap_walk(secattr->attr.mls.cat, cat + 1); secattr 988 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 994 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, secattr 1059 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 1074 net/ipv4/cipso_ipv4.c iter = netlbl_catmap_walk(secattr->attr.mls.cat, iter + 1); secattr 1082 net/ipv4/cipso_ipv4.c iter = netlbl_catmap_walkrng(secattr->attr.mls.cat, iter); secattr 1120 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 1134 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setrng(&secattr->attr.mls.cat, secattr 1183 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 1191 net/ipv4/cipso_ipv4.c if ((secattr->flags & NETLBL_SECATTR_MLS_LVL) == 0) secattr 1195 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl, secattr 1200 net/ipv4/cipso_ipv4.c if (secattr->flags & NETLBL_SECATTR_MLS_CAT) { secattr 1202 net/ipv4/cipso_ipv4.c secattr, secattr 1239 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 1248 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl = level; secattr 1249 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_MLS_LVL; secattr 1255 net/ipv4/cipso_ipv4.c secattr); secattr 1257 net/ipv4/cipso_ipv4.c netlbl_catmap_free(secattr->attr.mls.cat); secattr 1261 net/ipv4/cipso_ipv4.c if (secattr->attr.mls.cat) secattr 1262 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_MLS_CAT; secattr 1281 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 1289 net/ipv4/cipso_ipv4.c if (!(secattr->flags & NETLBL_SECATTR_MLS_LVL)) secattr 1293 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl, secattr 1298 net/ipv4/cipso_ipv4.c if (secattr->flags & NETLBL_SECATTR_MLS_CAT) { secattr 1300 net/ipv4/cipso_ipv4.c secattr, secattr 1331 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 1340 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl = level; secattr 1341 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_MLS_LVL; secattr 1347 net/ipv4/cipso_ipv4.c secattr); secattr 1349 net/ipv4/cipso_ipv4.c netlbl_catmap_free(secattr->attr.mls.cat); secattr 1353 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_MLS_CAT; secattr 1372 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 1380 net/ipv4/cipso_ipv4.c if (!(secattr->flags & NETLBL_SECATTR_MLS_LVL)) secattr 1384 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl, secattr 1389 net/ipv4/cipso_ipv4.c if (secattr->flags & NETLBL_SECATTR_MLS_CAT) { secattr 1391 net/ipv4/cipso_ipv4.c secattr, secattr 1421 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 1430 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl = level; secattr 1431 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_MLS_LVL; secattr 1437 net/ipv4/cipso_ipv4.c secattr); secattr 1439 net/ipv4/cipso_ipv4.c netlbl_catmap_free(secattr->attr.mls.cat); secattr 1443 net/ipv4/cipso_ipv4.c if (secattr->attr.mls.cat) secattr 1444 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_MLS_CAT; secattr 1463 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr, secattr 1467 net/ipv4/cipso_ipv4.c if (!(secattr->flags & NETLBL_SECATTR_SECID)) secattr 1472 net/ipv4/cipso_ipv4.c *(u32 *)&buffer[2] = secattr->attr.secid; secattr 1490 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 1492 net/ipv4/cipso_ipv4.c secattr->attr.secid = *(u32 *)&tag[2]; secattr 1493 net/ipv4/cipso_ipv4.c secattr->flags |= NETLBL_SECATTR_SECID; secattr 1769 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr) secattr 1786 net/ipv4/cipso_ipv4.c secattr, secattr 1792 net/ipv4/cipso_ipv4.c secattr, secattr 1798 net/ipv4/cipso_ipv4.c secattr, secattr 1804 net/ipv4/cipso_ipv4.c secattr, secattr 1838 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr) secattr 1865 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); secattr 1923 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr) secattr 1942 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); secattr 2091 net/ipv4/cipso_ipv4.c struct netlbl_lsm_secattr *secattr) secattr 2097 net/ipv4/cipso_ipv4.c if (cipso_v4_cache_check(cipso, cipso[1], secattr) == 0) secattr 2110 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_rbm(doi_def, &cipso[6], secattr); secattr 2113 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_enum(doi_def, &cipso[6], secattr); secattr 2116 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_rng(doi_def, &cipso[6], secattr); secattr 2119 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_loc(doi_def, &cipso[6], secattr); secattr 2123 net/ipv4/cipso_ipv4.c secattr->type = NETLBL_NLTYPE_CIPSOV4; secattr 2142 net/ipv4/cipso_ipv4.c int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr) secattr 2153 net/ipv4/cipso_ipv4.c secattr); secattr 2170 net/ipv4/cipso_ipv4.c const struct netlbl_lsm_secattr *secattr) secattr 2180 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); secattr 198 net/ipv6/calipso.c struct netlbl_lsm_secattr *secattr) secattr 217 net/ipv6/calipso.c secattr->cache = entry->lsm_data; secattr 218 net/ipv6/calipso.c secattr->flags |= NETLBL_SECATTR_CACHE; secattr 219 net/ipv6/calipso.c secattr->type = NETLBL_NLTYPE_CALIPSO; secattr 262 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr) secattr 285 net/ipv6/calipso.c refcount_inc(&secattr->cache->refcount); secattr 286 net/ipv6/calipso.c entry->lsm_data = secattr->cache; secattr 613 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr, secattr 622 net/ipv6/calipso.c spot = netlbl_catmap_walk(secattr->attr.mls.cat, secattr 653 net/ipv6/calipso.c struct netlbl_lsm_secattr *secattr) secattr 670 net/ipv6/calipso.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, secattr 729 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr) secattr 742 net/ipv6/calipso.c if ((secattr->flags & NETLBL_SECATTR_MLS_LVL) == 0) secattr 747 net/ipv6/calipso.c if (secattr->flags & NETLBL_SECATTR_MLS_CAT) { secattr 749 net/ipv6/calipso.c secattr, secattr 764 net/ipv6/calipso.c calipso[7] = secattr->attr.mls.lvl, secattr 914 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr) secattr 939 net/ipv6/calipso.c secattr); secattr 1019 net/ipv6/calipso.c struct netlbl_lsm_secattr *secattr) secattr 1028 net/ipv6/calipso.c if (calipso_cache_check(calipso + 2, calipso[1], secattr) == 0) secattr 1037 net/ipv6/calipso.c secattr->attr.mls.lvl = calipso[7]; secattr 1038 net/ipv6/calipso.c secattr->flags |= NETLBL_SECATTR_MLS_LVL; secattr 1044 net/ipv6/calipso.c secattr); secattr 1046 net/ipv6/calipso.c netlbl_catmap_free(secattr->attr.mls.cat); secattr 1050 net/ipv6/calipso.c if (secattr->attr.mls.cat) secattr 1051 net/ipv6/calipso.c secattr->flags |= NETLBL_SECATTR_MLS_CAT; secattr 1054 net/ipv6/calipso.c secattr->type = NETLBL_NLTYPE_CALIPSO; secattr 1077 net/ipv6/calipso.c struct netlbl_lsm_secattr *secattr) secattr 1103 net/ipv6/calipso.c secattr); secattr 1131 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr) secattr 1141 net/ipv6/calipso.c new = calipso_opt_insert(old, doi_def, secattr); secattr 1195 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr) secattr 1207 net/ipv6/calipso.c new = calipso_opt_insert(old, doi_def, secattr); secattr 1300 net/ipv6/calipso.c const struct netlbl_lsm_secattr *secattr) secattr 1321 net/ipv6/calipso.c ret_val = calipso_genopt(buf, start & 3, sizeof(buf), doi_def, secattr); secattr 520 net/netlabel/netlabel_calipso.c int calipso_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr) secattr 526 net/netlabel/netlabel_calipso.c ret_val = ops->sock_getattr(sk, secattr); secattr 546 net/netlabel/netlabel_calipso.c const struct netlbl_lsm_secattr *secattr) secattr 552 net/netlabel/netlabel_calipso.c ret_val = ops->sock_setattr(sk, doi_def, secattr); secattr 586 net/netlabel/netlabel_calipso.c const struct netlbl_lsm_secattr *secattr) secattr 592 net/netlabel/netlabel_calipso.c ret_val = ops->req_setattr(req, doi_def, secattr); secattr 642 net/netlabel/netlabel_calipso.c struct netlbl_lsm_secattr *secattr) secattr 648 net/netlabel/netlabel_calipso.c ret_val = ops->opt_getattr(calipso, secattr); secattr 665 net/netlabel/netlabel_calipso.c const struct netlbl_lsm_secattr *secattr) secattr 671 net/netlabel/netlabel_calipso.c ret_val = ops->skbuff_setattr(skb, doi_def, secattr); secattr 721 net/netlabel/netlabel_calipso.c const struct netlbl_lsm_secattr *secattr) secattr 728 net/netlabel/netlabel_calipso.c ret_val = ops->cache_add(calipso_ptr, secattr); secattr 117 net/netlabel/netlabel_calipso.h int calipso_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr); secattr 120 net/netlabel/netlabel_calipso.h const struct netlbl_lsm_secattr *secattr); secattr 124 net/netlabel/netlabel_calipso.h const struct netlbl_lsm_secattr *secattr); secattr 128 net/netlabel/netlabel_calipso.h struct netlbl_lsm_secattr *secattr); secattr 131 net/netlabel/netlabel_calipso.h const struct netlbl_lsm_secattr *secattr); secattr 135 net/netlabel/netlabel_calipso.h const struct netlbl_lsm_secattr *secattr); secattr 977 net/netlabel/netlabel_kapi.c const struct netlbl_lsm_secattr *secattr) secattr 983 net/netlabel/netlabel_kapi.c dom_entry = netlbl_domhsh_getentry(secattr->domain, family); secattr 997 net/netlabel/netlabel_kapi.c secattr); secattr 1015 net/netlabel/netlabel_kapi.c secattr); secattr 1070 net/netlabel/netlabel_kapi.c struct netlbl_lsm_secattr *secattr) secattr 1076 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_sock_getattr(sk, secattr); secattr 1080 net/netlabel/netlabel_kapi.c ret_val = calipso_sock_getattr(sk, secattr); secattr 1104 net/netlabel/netlabel_kapi.c const struct netlbl_lsm_secattr *secattr) secattr 1117 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af4(secattr->domain, secattr 1126 net/netlabel/netlabel_kapi.c entry->cipso, secattr); secattr 1141 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af6(secattr->domain, secattr 1150 net/netlabel/netlabel_kapi.c entry->calipso, secattr); secattr 1183 net/netlabel/netlabel_kapi.c const struct netlbl_lsm_secattr *secattr) secattr 1192 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af4(secattr->domain, secattr 1201 net/netlabel/netlabel_kapi.c entry->cipso, secattr); secattr 1213 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af6(secattr->domain, secattr 1222 net/netlabel/netlabel_kapi.c entry->calipso, secattr); secattr 1277 net/netlabel/netlabel_kapi.c const struct netlbl_lsm_secattr *secattr) secattr 1290 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af4(secattr->domain, secattr 1299 net/netlabel/netlabel_kapi.c secattr); secattr 1313 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af6(secattr->domain, secattr 1322 net/netlabel/netlabel_kapi.c secattr); secattr 1358 net/netlabel/netlabel_kapi.c struct netlbl_lsm_secattr *secattr) secattr 1365 net/netlabel/netlabel_kapi.c if (ptr && cipso_v4_getattr(ptr, secattr) == 0) secattr 1371 net/netlabel/netlabel_kapi.c if (ptr && calipso_getattr(ptr, secattr) == 0) secattr 1377 net/netlabel/netlabel_kapi.c return netlbl_unlabel_getattr(skb, family, secattr); secattr 1433 net/netlabel/netlabel_kapi.c const struct netlbl_lsm_secattr *secattr) secattr 1437 net/netlabel/netlabel_kapi.c if ((secattr->flags & NETLBL_SECATTR_CACHE) == 0) secattr 1444 net/netlabel/netlabel_kapi.c return cipso_v4_cache_add(ptr, secattr); secattr 1450 net/netlabel/netlabel_kapi.c return calipso_cache_add(ptr, secattr); secattr 1453 net/netlabel/netlabel_unlabeled.c struct netlbl_lsm_secattr *secattr) secattr 1483 net/netlabel/netlabel_unlabeled.c secattr->attr.secid = netlbl_unlhsh_addr4_entry(addr4)->secid; secattr 1496 net/netlabel/netlabel_unlabeled.c secattr->attr.secid = netlbl_unlhsh_addr6_entry(addr6)->secid; secattr 1505 net/netlabel/netlabel_unlabeled.c secattr->flags |= NETLBL_SECATTR_SECID; secattr 1506 net/netlabel/netlabel_unlabeled.c secattr->type = NETLBL_NLTYPE_UNLABELED; secattr 1513 net/netlabel/netlabel_unlabeled.c secattr->type = NETLBL_NLTYPE_UNLABELED; secattr 226 net/netlabel/netlabel_unlabeled.h struct netlbl_lsm_secattr *secattr); secattr 340 security/selinux/include/security.h struct netlbl_lsm_secattr *secattr, secattr 345 security/selinux/include/security.h struct netlbl_lsm_secattr *secattr); secattr 348 security/selinux/include/security.h struct netlbl_lsm_secattr *secattr, secattr 356 security/selinux/include/security.h struct netlbl_lsm_secattr *secattr) secattr 43 security/selinux/netlabel.c struct netlbl_lsm_secattr *secattr, secattr 48 security/selinux/netlabel.c rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); secattr 50 security/selinux/netlabel.c (secattr->flags & NETLBL_SECATTR_CACHEABLE) && secattr 51 security/selinux/netlabel.c (secattr->flags & NETLBL_SECATTR_CACHE)) secattr 52 security/selinux/netlabel.c netlbl_cache_add(skb, family, secattr); secattr 71 security/selinux/netlabel.c struct netlbl_lsm_secattr *secattr; secattr 76 security/selinux/netlabel.c secattr = netlbl_secattr_alloc(GFP_ATOMIC); secattr 77 security/selinux/netlabel.c if (secattr == NULL) secattr 80 security/selinux/netlabel.c secattr); secattr 82 security/selinux/netlabel.c netlbl_secattr_free(secattr); secattr 85 security/selinux/netlabel.c sksec->nlbl_secattr = secattr; secattr 87 security/selinux/netlabel.c return secattr; secattr 104 security/selinux/netlabel.c struct netlbl_lsm_secattr *secattr = sksec->nlbl_secattr; secattr 106 security/selinux/netlabel.c if (secattr == NULL) secattr 109 security/selinux/netlabel.c if ((secattr->flags & NETLBL_SECATTR_SECID) && secattr 110 security/selinux/netlabel.c (secattr->attr.secid == sid)) secattr 111 security/selinux/netlabel.c return secattr; secattr 194 security/selinux/netlabel.c struct netlbl_lsm_secattr secattr; secattr 201 security/selinux/netlabel.c netlbl_secattr_init(&secattr); secattr 202 security/selinux/netlabel.c rc = netlbl_skbuff_getattr(skb, family, &secattr); secattr 203 security/selinux/netlabel.c if (rc == 0 && secattr.flags != NETLBL_SECATTR_NONE) secattr 205 security/selinux/netlabel.c &secattr, sid); secattr 208 security/selinux/netlabel.c *type = secattr.type; secattr 209 security/selinux/netlabel.c netlbl_secattr_destroy(&secattr); secattr 231 security/selinux/netlabel.c struct netlbl_lsm_secattr *secattr = NULL; secattr 242 security/selinux/netlabel.c secattr = selinux_netlbl_sock_getattr(sk, sid); secattr 244 security/selinux/netlabel.c if (secattr == NULL) { secattr 245 security/selinux/netlabel.c secattr = &secattr_storage; secattr 246 security/selinux/netlabel.c netlbl_secattr_init(secattr); secattr 248 security/selinux/netlabel.c secattr); secattr 253 security/selinux/netlabel.c rc = netlbl_skbuff_setattr(skb, family, secattr); secattr 256 security/selinux/netlabel.c if (secattr == &secattr_storage) secattr 257 security/selinux/netlabel.c netlbl_secattr_destroy(secattr); secattr 275 security/selinux/netlabel.c struct netlbl_lsm_secattr secattr; secattr 284 security/selinux/netlabel.c netlbl_secattr_init(&secattr); secattr 286 security/selinux/netlabel.c ep->secid, &secattr); secattr 296 security/selinux/netlabel.c rc = netlbl_conn_setattr(ep->base.sk, (void *)&addr4, &secattr); secattr 300 security/selinux/netlabel.c rc = netlbl_conn_setattr(ep->base.sk, (void *)&addr6, &secattr); secattr 309 security/selinux/netlabel.c netlbl_secattr_destroy(&secattr); secattr 327 security/selinux/netlabel.c struct netlbl_lsm_secattr secattr; secattr 332 security/selinux/netlabel.c netlbl_secattr_init(&secattr); secattr 334 security/selinux/netlabel.c &secattr); secattr 337 security/selinux/netlabel.c rc = netlbl_req_setattr(req, &secattr); secattr 339 security/selinux/netlabel.c netlbl_secattr_destroy(&secattr); secattr 393 security/selinux/netlabel.c struct netlbl_lsm_secattr *secattr; secattr 398 security/selinux/netlabel.c secattr = selinux_netlbl_sock_genattr(sk); secattr 399 security/selinux/netlabel.c if (secattr == NULL) secattr 401 security/selinux/netlabel.c rc = netlbl_sock_setattr(sk, family, secattr); secattr 436 security/selinux/netlabel.c struct netlbl_lsm_secattr secattr; secattr 441 security/selinux/netlabel.c netlbl_secattr_init(&secattr); secattr 442 security/selinux/netlabel.c rc = netlbl_skbuff_getattr(skb, family, &secattr); secattr 443 security/selinux/netlabel.c if (rc == 0 && secattr.flags != NETLBL_SECATTR_NONE) secattr 445 security/selinux/netlabel.c &secattr, &nlbl_sid); secattr 448 security/selinux/netlabel.c netlbl_secattr_destroy(&secattr); secattr 508 security/selinux/netlabel.c struct netlbl_lsm_secattr secattr; secattr 513 security/selinux/netlabel.c netlbl_secattr_init(&secattr); secattr 518 security/selinux/netlabel.c rc = netlbl_sock_getattr(sk, &secattr); secattr 524 security/selinux/netlabel.c netlbl_secattr_destroy(&secattr); secattr 546 security/selinux/netlabel.c struct netlbl_lsm_secattr *secattr; secattr 557 security/selinux/netlabel.c secattr = selinux_netlbl_sock_genattr(sk); secattr 558 security/selinux/netlabel.c if (secattr == NULL) { secattr 562 security/selinux/netlabel.c rc = netlbl_conn_setattr(sk, addr, secattr); secattr 564 security/selinux/ss/mls.c struct netlbl_lsm_secattr *secattr) secattr 569 security/selinux/ss/mls.c secattr->attr.mls.lvl = context->range.level[0].sens - 1; secattr 570 security/selinux/ss/mls.c secattr->flags |= NETLBL_SECATTR_MLS_LVL; secattr 585 security/selinux/ss/mls.c struct netlbl_lsm_secattr *secattr) secattr 590 security/selinux/ss/mls.c context->range.level[0].sens = secattr->attr.mls.lvl + 1; secattr 606 security/selinux/ss/mls.c struct netlbl_lsm_secattr *secattr) secattr 614 security/selinux/ss/mls.c &secattr->attr.mls.cat); secattr 615 security/selinux/ss/mls.c if (rc == 0 && secattr->attr.mls.cat != NULL) secattr 616 security/selinux/ss/mls.c secattr->flags |= NETLBL_SECATTR_MLS_CAT; secattr 635 security/selinux/ss/mls.c struct netlbl_lsm_secattr *secattr) secattr 643 security/selinux/ss/mls.c secattr->attr.mls.cat); secattr 67 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr); secattr 70 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr); secattr 73 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr); secattr 76 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr); secattr 80 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr) secattr 86 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr) secattr 92 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr) secattr 98 security/selinux/ss/mls.h struct netlbl_lsm_secattr *secattr) secattr 3547 security/selinux/ss/services.c static void security_netlbl_cache_add(struct netlbl_lsm_secattr *secattr, secattr 3555 security/selinux/ss/services.c secattr->cache = netlbl_secattr_cache_alloc(GFP_ATOMIC); secattr 3556 security/selinux/ss/services.c if (secattr->cache == NULL) { secattr 3562 security/selinux/ss/services.c secattr->cache->free = kfree; secattr 3563 security/selinux/ss/services.c secattr->cache->data = sid_cache; secattr 3564 security/selinux/ss/services.c secattr->flags |= NETLBL_SECATTR_CACHE; secattr 3583 security/selinux/ss/services.c struct netlbl_lsm_secattr *secattr, secattr 3599 security/selinux/ss/services.c if (secattr->flags & NETLBL_SECATTR_CACHE) secattr 3600 security/selinux/ss/services.c *sid = *(u32 *)secattr->cache->data; secattr 3601 security/selinux/ss/services.c else if (secattr->flags & NETLBL_SECATTR_SECID) secattr 3602 security/selinux/ss/services.c *sid = secattr->attr.secid; secattr 3603 security/selinux/ss/services.c else if (secattr->flags & NETLBL_SECATTR_MLS_LVL) { secattr 3613 security/selinux/ss/services.c mls_import_netlbl_lvl(policydb, &ctx_new, secattr); secattr 3614 security/selinux/ss/services.c if (secattr->flags & NETLBL_SECATTR_MLS_CAT) { secattr 3615 security/selinux/ss/services.c rc = mls_import_netlbl_cat(policydb, &ctx_new, secattr); secattr 3627 security/selinux/ss/services.c security_netlbl_cache_add(secattr, *sid); secattr 3653 security/selinux/ss/services.c u32 sid, struct netlbl_lsm_secattr *secattr) secattr 3670 security/selinux/ss/services.c secattr->domain = kstrdup(sym_name(policydb, SYM_TYPES, ctx->type - 1), secattr 3672 security/selinux/ss/services.c if (secattr->domain == NULL) secattr 3675 security/selinux/ss/services.c secattr->attr.secid = sid; secattr 3676 security/selinux/ss/services.c secattr->flags |= NETLBL_SECATTR_DOMAIN_CPY | NETLBL_SECATTR_SECID; secattr 3677 security/selinux/ss/services.c mls_export_netlbl_lvl(policydb, ctx, secattr); secattr 3678 security/selinux/ss/services.c rc = mls_export_netlbl_cat(policydb, ctx, secattr); secattr 3835 security/smack/smack_lsm.c struct netlbl_lsm_secattr secattr; secattr 3868 security/smack/smack_lsm.c netlbl_secattr_init(&secattr); secattr 3870 security/smack/smack_lsm.c rc = netlbl_skbuff_getattr(skb, family, &secattr); secattr 3872 security/smack/smack_lsm.c skp = smack_from_secattr(&secattr, ssp); secattr 3876 security/smack/smack_lsm.c netlbl_secattr_destroy(&secattr); secattr 3987 security/smack/smack_lsm.c struct netlbl_lsm_secattr secattr; secattr 4021 security/smack/smack_lsm.c netlbl_secattr_init(&secattr); secattr 4022 security/smack/smack_lsm.c rc = netlbl_skbuff_getattr(skb, family, &secattr); secattr 4024 security/smack/smack_lsm.c skp = smack_from_secattr(&secattr, ssp); secattr 4027 security/smack/smack_lsm.c netlbl_secattr_destroy(&secattr); secattr 4079 security/smack/smack_lsm.c struct netlbl_lsm_secattr secattr; secattr 4115 security/smack/smack_lsm.c netlbl_secattr_init(&secattr); secattr 4116 security/smack/smack_lsm.c rc = netlbl_skbuff_getattr(skb, family, &secattr); secattr 4118 security/smack/smack_lsm.c skp = smack_from_secattr(&secattr, ssp); secattr 4121 security/smack/smack_lsm.c netlbl_secattr_destroy(&secattr);