netlbl_cfg_unlbl_map_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, literally
  • mask β€” the IP address mask, also literally
  • audit_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:

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