netlbl_cfg_cipsov4_map_add(9)
β¨ netlbl_cfg_cipsov4_map_add(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for netlbl_cfg_cipsov4_map_add(9) β literally the function that adds a new CIPSOv4 DOI mapping π yes, that's the whole vibe.
π NAME π
netlbl_cfg_cipsov4_map_add β Add a new CIPSOv4 DOI mapping π¦
πΈ SYNOPSIS πΈ
int netlbl_cfg_cipsov4_map_add (u32 doi , const char *domain , const
struct in_addr *addr , const struct in_addr *mask , struct netlbl_audit
*audit_info );
like, that's the whole signature. five arguments. she's got range π
β¨ ARGUMENTS β¨
doiβ the CIPSO DOI πdomainβ the domain mapping to add π«Άaddrβ IP address πmaskβ IP address mask πaudit_infoβ NetLabel audit information π
π DESCRIPTION π
So what does she do? She adds a shiny new NetLabel/LSM domain mapping for the given CIPSO DOI into the NetLabel subsystem. Iconic. No cap. π
and okay, important detail bestie: a domain value of NULL adds a new default domain mapping. that's the special case, don't forget it π
Returns zero on success, negative values on failure. periodt. β
π¦ SEE ALSO π¦
Kernel file ./net/netlabel/netlabel_kapi.c β and like, the whole friend group π:
netlbl_cfg_map_del(9)netlbl_cfg_unlbl_map_add(9)netlbl_cfg_unlbl_static_add(9)netlbl_cfg_unlbl_static_del(9)netlbl_cfg_cipsov4_add(9)netlbl_cfg_cipsov4_del(9)netlbl_cfg_calipso_add(9)netlbl_cfg_calipso_del(9)netlbl_cfg_calipso_map_add(9)_netlbl_catmap_getnode(9)netlbl_catmap_walk(9)netlbl_catmap_walkrng(9)netlbl_catmap_getlong(9)netlbl_catmap_setbit(9)netlbl_catmap_setrng(9)netlbl_catmap_setlong(9)netlbl_bitmap_walk(9)netlbl_bitmap_setbit(9)netlbl_enabled(9)netlbl_sock_setattr(9)netlbl_sock_delattr(9)netlbl_sock_getattr(9)netlbl_sk_lock_check(9)netlbl_conn_setattr(9)netlbl_req_setattr(9)netlbl_req_delattr(9)netlbl_skbuff_setattr(9)netlbl_skbuff_getattr(9)netlbl_skbuff_err(9)netlbl_cache_invalidate(9)netlbl_cache_add(9)netlbl_audit_start(9)netlbl_init(9)
ngl bestie, that's a lot of cross-references. read them. they're all slaying in their own way ππ
and that's the page!! mwah π this little gem lives in ./net/netlabel and it's dated October 2026 β see you in the future, bestie π§ββοΈπ
π¦ 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