Lines Matching refs:secattr

181  * @secattr: the security attribute struct to use
186 * @secattr struct is populated with the correct LSM security attributes. The
201 struct netlbl_lsm_secattr *secattr)
220 secattr->cache = entry->lsm_data;
221 secattr->flags |= NETLBL_SECATTR_CACHE;
222 secattr->type = NETLBL_NLTYPE_CALIPSO;
252 * @secattr: the packet's security attributes
265 const struct netlbl_lsm_secattr *secattr)
288 refcount_inc(&secattr->cache->refcount);
289 entry->lsm_data = secattr->cache;
598 * @secattr: the security attributes
609 const struct netlbl_lsm_secattr *secattr,
618 spot = netlbl_catmap_walk(secattr->attr.mls.cat,
638 * @secattr: the security attributes
649 struct netlbl_lsm_secattr *secattr)
666 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat,
715 * @secattr: the security attributes
725 const struct netlbl_lsm_secattr *secattr)
738 if ((secattr->flags & NETLBL_SECATTR_MLS_LVL) == 0)
743 if (secattr->flags & NETLBL_SECATTR_MLS_CAT) {
745 secattr,
760 calipso[7] = secattr->attr.mls.lvl;
897 * @secattr: the specific security attributes of the socket
910 const struct netlbl_lsm_secattr *secattr)
935 secattr);
1007 * @secattr: the security attributes
1010 * Inspect @calipso and return the security attributes in @secattr.
1015 struct netlbl_lsm_secattr *secattr)
1024 if (calipso_cache_check(calipso + 2, calipso[1], secattr) == 0)
1033 secattr->attr.mls.lvl = calipso[7];
1034 secattr->flags |= NETLBL_SECATTR_MLS_LVL;
1040 secattr);
1042 netlbl_catmap_free(secattr->attr.mls.cat);
1046 if (secattr->attr.mls.cat)
1047 secattr->flags |= NETLBL_SECATTR_MLS_CAT;
1050 secattr->type = NETLBL_NLTYPE_CALIPSO;
1063 * @secattr: the security attributes
1067 * there is return the CALIPSO security attributes in @secattr. This function
1073 struct netlbl_lsm_secattr *secattr)
1099 secattr);
1115 * @secattr: the specific security attributes of the socket
1127 const struct netlbl_lsm_secattr *secattr)
1137 new = calipso_opt_insert(old, doi_def, secattr);
1181 * @secattr: the specific security attributes of the socket
1191 const struct netlbl_lsm_secattr *secattr)
1203 new = calipso_opt_insert(old, doi_def, secattr);
1287 * @secattr: the security attributes
1296 const struct netlbl_lsm_secattr *secattr)
1317 ret_val = calipso_genopt(buf, start & 3, sizeof(buf), doi_def, secattr);