netlbl_cfg_map_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, obvi
  • addr β€” the IP address
  • mask β€” the IP address mask
  • audit_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:


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