calipso_map_cat_ntoh(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ CALIPSO category mapping: network β†’ host, bestie edition πŸ¦‹

okay so calipso_map_cat_ntoh(9) is from the Kernel API Manual, and it is literally here to do one glow-up: take a CALIPSO category bitmap and map it from network vibes into host vibes. no cap. πŸ’…

🌸 NAME 🌸

calipso_map_cat_ntoh β€” Perform a category mapping from network to host ✨

✨ SYNOPSIS ✨

int calipso_map_cat_ntoh (const struct calipso_doi *doi_def , const
       unsigned char *net_cat , u32 net_cat_len , struct netlbl_lsm_secattr
       *secattr );

πŸŽ€ ARGUMENTS πŸŽ€

  • doi_def β€” the DOI definition 🫢
  • net_cat β€” the category bitmap in network/CALIPSO format 🌐
  • net_cat_len β€” the length of the CALIPSO bitmap in bytes πŸ“
  • secattr β€” the security attributes πŸ”

πŸ’… DESCRIPTION πŸ’…

Okay so this function does a label mapping: it translates a CALIPSO bitmap into the correct local MLS category bitmap, using the given DOI definition. Returns zero on success, negative values on failure. That’s the whole vibe check β€” zero means slay, negative values mean nope 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/ipv6/calipso.c, plus calipso_cache_entry_free(9), calipso_map_cache_hash(9), calipso_cache_init(9), calipso_cache_invalidate(9), calipso_cache_check(9), calipso_cache_add(9), calipso_doi_search(9), calipso_doi_add(9), calipso_doi_free(9), calipso_doi_free_rcu(9), calipso_doi_remove(9), calipso_doi_getdef(9), calipso_doi_putdef(9), calipso_doi_walk(9), calipso_validate(9), calipso_map_cat_hton(9), calipso_pad_write(9), calipso_genopt(9), calipso_opt_update(9), calipso_tlv_len(9), calipso_opt_find(9), calipso_opt_insert(9), calipso_opt_del(9), calipso_opt_getattr(9), calipso_sock_getattr(9), calipso_sock_setattr(9), calipso_sock_delattr(9), calipso_req_setattr(9), calipso_req_delattr(9), calipso_skbuff_optptr(9), calipso_skbuff_setattr(9), calipso_skbuff_delattr(9), calipso_init(9) 🌈


πŸŽ€ source/version is ./net/ipv6, date is October 2026, and this was calipso_map_cat_ntoh(9) β€” mwah, bestie, go map those categories πŸ’–
πŸ“¦ where this page comes from