netlbl_cfg_map_del(9)
π netlbl_cfg_map_del β the kernel API manual, bestie edition π
okay so this is netlbl_cfg_map_del(9) from the kernel API manual and honestly? it's giving "short but essential." it's the lil function that yeets a NetLabel/LSM domain mapping into the void. we love a clean removal arc. β¨
β¨ NAME β¨
netlbl_cfg_map_del β remove a NetLabel/LSM domain mapping π«
πΈ SYNOPSIS πΈ
int netlbl_cfg_map_del (const char *domain , u16 family , const void
*addr , const void *mask , struct netlbl_audit *audit_info );
like, five args, one job. she's focused. π«Ά
π¦ ARGUMENTS π¦
domainβ the domain mapping you wanna remove. bye bestie πfamilyβ the address family, obviaddrβ the IP addressmaskβ the IP address maskaudit_infoβ the NetLabel audit info, for the receipts π
π DESCRIPTION π
Removes a NetLabel/LSM domain mapping. periodt. π₯
and here's the iconic detail: if domain is NULL, that causes the default domain mapping to be removed. so NULL is not a bug, it's a vibe β it means "default, please." π
it returns zero on success, and negative values on failure. so basically:
0= slay β- negative = not slay π
ngl, check that return value. negative means something went sideways and you will want to know about it. fr fr.
π SEE ALSO π
the whole friend group π«Ά β and yes, the kernel file ./net/netlabel/netlabel_kapi.c is where it lives:
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_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)
and that's the whole page, bestie π this lil icon shipped from the source ./net/netlabel, dated October 2026, and it's signed netlbl_cfg_map_del(9) β mwah, no notes. πβ¨
π¦ 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