cipso_v4_parsetag_rbm(9)
π cipso_v4_parsetag_rbm β NAME β¨
okay so bestie, this is cipso_v4_parsetag_rbm β it parses a CIPSO restricted bitmap tag π
and this page lives in the Kernel API Manual, so you know it's serious kernel business π
πΈ SYNOPSIS πΈ
int cipso_v4_parsetag_rbm (const struct cipso_v4_doi *doi_def , const
unsigned char *tag , struct netlbl_lsm_secattr *secattr );
like, that's the whole signature, no cap π«Ά
π¦ ARGUMENTS π¦
doi_defβ the DOI definition π literally the definition of the domain of interpretation, okay?tagβ the CIPSO tag π·οΈ the actual bytes we're looking atsecattrβ the security attributes π this is where the parsed results go
π DESCRIPTION π
so the way this works is: you hand it a CIPSO restricted bitmap tag (that's tag type #1, iykyk β¨) and it parses that thing and returns the security attributes in secattr π
and the return vibes? it returns zero on success, and negative values on failure π so like, check your return value bestie, fr fr.
π SEE ALSO π
the kernel file is ./net/ipv4/cipso_ipv4.c and honestly the whole friend group is here π«Ά go read these:
cipso_v4_cache_entry_free(9)cipso_v4_map_cache_hash(9)cipso_v4_cache_init(9)cipso_v4_cache_invalidate(9)cipso_v4_cache_check(9)cipso_v4_cache_add(9)cipso_v4_doi_search(9)cipso_v4_doi_add(9)cipso_v4_doi_free(9)cipso_v4_doi_free_rcu(9)cipso_v4_doi_remove(9)cipso_v4_doi_getdef(9)cipso_v4_doi_putdef(9)cipso_v4_doi_walk(9)cipso_v4_map_lvl_valid(9)cipso_v4_map_lvl_hton(9)cipso_v4_map_lvl_ntoh(9)cipso_v4_map_cat_rbm_valid(9)cipso_v4_map_cat_rbm_hton(9)cipso_v4_map_cat_rbm_ntoh(9)cipso_v4_map_cat_enum_valid(9)cipso_v4_map_cat_enum_hton(9)cipso_v4_map_cat_enum_ntoh(9)cipso_v4_map_cat_rng_valid(9)cipso_v4_map_cat_rng_hton(9)cipso_v4_map_cat_rng_ntoh(9)cipso_v4_gentag_hdr(9)cipso_v4_gentag_rbm(9)cipso_v4_gentag_enum(9)cipso_v4_parsetag_enum(9)cipso_v4_gentag_rng(9)cipso_v4_parsetag_rng(9)cipso_v4_gentag_loc(9)cipso_v4_parsetag_loc(9)cipso_v4_optptr(9)cipso_v4_validate(9)cipso_v4_error(9)cipso_v4_genopt(9)cipso_v4_sock_setattr(9)cipso_v4_req_setattr(9)cipso_v4_delopt(9)cipso_v4_sock_delattr(9)cipso_v4_req_delattr(9)cipso_v4_getattr(9)cipso_v4_sock_getattr(9)cipso_v4_skbuff_setattr(9)cipso_v4_skbuff_delattr(9)cipso_v4_init(9)
π reminder bestie: zero is a slay, negatives are a no π check your return values.
and that's the whole page fr β brought to you from ./net/ipv4, dated October 2026, page cipso_v4_parsetag_rbm(9) π byeee, go parse some tags π§ββοΈβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms