Lines Matching refs:secattr

599  * netlbl_catmap_walk - Walk a LSM secattr catmap looking for a bit
604 * This function walks a LSM secattr category bitmap starting at @offset and
658 * This function walks a LSM secattr category bitmap starting at @offset and
765 * netlbl_catmap_setbit - Set a bit in a LSM secattr catmap
795 * netlbl_catmap_setrng - Set a range of bits in a LSM secattr catmap
967 * @secattr: the security attributes
971 * specified in @secattr. This function requires exclusive access to @sk,
980 const struct netlbl_lsm_secattr *secattr)
986 dom_entry = netlbl_domhsh_getentry(secattr->domain, family);
1000 secattr);
1018 secattr);
1063 * @secattr: the security attributes
1068 * security attributes in @secattr. Returns zero on success, negative values
1073 struct netlbl_lsm_secattr *secattr)
1079 ret_val = cipso_v4_sock_getattr(sk, secattr);
1083 ret_val = calipso_sock_getattr(sk, secattr);
1097 * @secattr: the security attributes
1101 * attributes specified in @secattr. The caller is responsible for ensuring
1107 const struct netlbl_lsm_secattr *secattr)
1120 entry = netlbl_domhsh_getentry_af4(secattr->domain,
1129 entry->cipso, secattr);
1144 entry = netlbl_domhsh_getentry_af6(secattr->domain,
1153 entry->calipso, secattr);
1178 * @secattr: the security attributes
1182 * specified in @secattr. Returns zero on success, negative values on failure.
1186 const struct netlbl_lsm_secattr *secattr)
1195 entry = netlbl_domhsh_getentry_af4(secattr->domain,
1204 entry->cipso, secattr);
1216 entry = netlbl_domhsh_getentry_af6(secattr->domain,
1225 entry->calipso, secattr);
1271 * @secattr: the security attributes
1275 * specified in @secattr. Returns zero on success, negative values on failure.
1280 const struct netlbl_lsm_secattr *secattr)
1293 entry = netlbl_domhsh_getentry_af4(secattr->domain,
1302 secattr);
1316 entry = netlbl_domhsh_getentry_af6(secattr->domain,
1325 secattr);
1350 * @secattr: the security attributes
1355 * attributes in @secattr. Returns zero on success, negative values on
1361 struct netlbl_lsm_secattr *secattr)
1368 if (ptr && cipso_v4_getattr(ptr, secattr) == 0)
1374 if (ptr && calipso_getattr(ptr, secattr) == 0)
1380 return netlbl_unlabel_getattr(skb, family, secattr);
1427 * @secattr: the packet's security attributes
1436 const struct netlbl_lsm_secattr *secattr)
1440 if ((secattr->flags & NETLBL_SECATTR_CACHE) == 0)
1447 return cipso_v4_cache_add(ptr, secattr);
1453 return calipso_cache_add(ptr, secattr);