netlbl_cfg_unlbl_map_add(9)
π netlbl_cfg_unlbl_map_add β Kernel API Manual β¨
okay bestie, so this is a page from the Kernel API Manual all about netlbl_cfg_unlbl_map_add, and honestly? It's giving "small function, important job" energy. Let's get into it π«Ά
πΈ NAME πΈ
netlbl_cfg_unlbl_map_add β adds a brand new unlabeled mapping. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int netlbl_cfg_unlbl_map_add (const char *domain , u16 family , const
void *addr , const void *mask , struct netlbl_audit *audit_info );
five args, one int back. no cap, that's the whole signature π₯
π ARGUMENTS π
domainβ the domain mapping you wanna add, bestie πfamilyβ the address family (iykyk)addrβ the IP address, literallymaskβ the IP address mask, also literallyaudit_infoβ the NetLabel audit information π§
β DESCRIPTION β
so what it does: this one adds a new unlabeled NetLabel/LSM domain mapping β¨
and here's the iconic bit β if you pass a domain value of NULL, it doesn't complain, it just adds a new default domain mapping instead. main character behavior honestly π
returns zero on success, and negative values on failure. so like, 0 = slay, anything negative = not slay π
π SEE ALSO π
this list is LONG and it ate, ngl. first up, the kernel file: ./net/netlabel/netlabel_kapi.c, then all these besties:
netlbl_cfg_map_del(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_cipsov4_map_add(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)
like, go off, cross-references ππ
fr fr though: if you only remember one thing, remember NULL domain = default domain mapping gets added. that's the plot twist π
and that's the whole page, bestie π this came out of ./net/netlabel, dated October 2026, and the manpage is literally just called netlbl_cfg_unlbl_map_add(9) β ok bye, go add some mappings, periodt π
β¨
π¦ 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