Lines Matching refs:secattr
201 struct netlbl_lsm_secattr *secattr) in calipso_cache_check() argument
220 secattr->cache = entry->lsm_data; in calipso_cache_check()
221 secattr->flags |= NETLBL_SECATTR_CACHE; in calipso_cache_check()
222 secattr->type = NETLBL_NLTYPE_CALIPSO; in calipso_cache_check()
265 const struct netlbl_lsm_secattr *secattr) in calipso_cache_add() argument
288 refcount_inc(&secattr->cache->refcount); in calipso_cache_add()
289 entry->lsm_data = secattr->cache; in calipso_cache_add()
609 const struct netlbl_lsm_secattr *secattr, in calipso_map_cat_hton() argument
618 spot = netlbl_catmap_walk(secattr->attr.mls.cat, in calipso_map_cat_hton()
649 struct netlbl_lsm_secattr *secattr) in calipso_map_cat_ntoh() argument
666 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, in calipso_map_cat_ntoh()
725 const struct netlbl_lsm_secattr *secattr) in calipso_genopt() argument
738 if ((secattr->flags & NETLBL_SECATTR_MLS_LVL) == 0) in calipso_genopt()
743 if (secattr->flags & NETLBL_SECATTR_MLS_CAT) { in calipso_genopt()
745 secattr, in calipso_genopt()
760 calipso[7] = secattr->attr.mls.lvl; in calipso_genopt()
910 const struct netlbl_lsm_secattr *secattr) in calipso_opt_insert() argument
935 secattr); in calipso_opt_insert()
1015 struct netlbl_lsm_secattr *secattr) in calipso_opt_getattr() argument
1024 if (calipso_cache_check(calipso + 2, calipso[1], secattr) == 0) in calipso_opt_getattr()
1033 secattr->attr.mls.lvl = calipso[7]; in calipso_opt_getattr()
1034 secattr->flags |= NETLBL_SECATTR_MLS_LVL; in calipso_opt_getattr()
1040 secattr); in calipso_opt_getattr()
1042 netlbl_catmap_free(secattr->attr.mls.cat); in calipso_opt_getattr()
1046 if (secattr->attr.mls.cat) in calipso_opt_getattr()
1047 secattr->flags |= NETLBL_SECATTR_MLS_CAT; in calipso_opt_getattr()
1050 secattr->type = NETLBL_NLTYPE_CALIPSO; in calipso_opt_getattr()
1073 struct netlbl_lsm_secattr *secattr) in calipso_sock_getattr() argument
1099 secattr); in calipso_sock_getattr()
1127 const struct netlbl_lsm_secattr *secattr) in calipso_sock_setattr() argument
1137 new = calipso_opt_insert(old, doi_def, secattr); in calipso_sock_setattr()
1191 const struct netlbl_lsm_secattr *secattr) in calipso_req_setattr() argument
1203 new = calipso_opt_insert(old, doi_def, secattr); in calipso_req_setattr()
1296 const struct netlbl_lsm_secattr *secattr) in calipso_skbuff_setattr() argument
1317 ret_val = calipso_genopt(buf, start & 3, sizeof(buf), doi_def, secattr); in calipso_skbuff_setattr()