netlbl_domhsh_add_default(9)
π netlbl_domhsh_add_default β kernel API manual, section 9
okay so bestie, welcome to netlbl_domhsh_add_default(9) π this one lives in the Kernel API Manual and it's basically the function that slides the default entry into the domain hash table. no cap, it's a whole moment.
β¨ SYNOPSIS β¨
int netlbl_domhsh_add_default (struct netlbl_dom_map *entry , struct
netlbl_audit *audit_info );
like, it takes two things and returns an int. that's it, that's the vibe π
π«Ά ARGUMENTS π«Ά
entryβ the entry to add π this is the actual thing you're putting in there.audit_infoβ the NetLabel audit information πΈ yes, the audit receipts are part of the package, we love accountability.
π DESCRIPTION π
So what it does: it adds a brand-new default entry to the domain hash table, and it also handles any updates that need to happen to the lower level protocol handler β i.e. CIPSO π¦ (that's literally how the original says it, "i.e. CIPSO", so we're keeping it exactly like that).
Return behaviour, listen up:
- returns zero on success β slay
- returns negative on failure π not slay
fr fr, check that return value. zero = good, negative = something went sideways. don't just ignore it and hope for the best π
π SEE ALSO π
The kernel file for this one is ./net/netlabel/netlabel_domainhash.c β go read the source, it's giving main character energy β
And here's the whole friend group, all of them, in order, no one left out π«Ά:
netlbl_domhsh_free_entry(9)netlbl_domhsh_hash(9)netlbl_domhsh_search(9)netlbl_domhsh_search_def(9)netlbl_domhsh_audit_add(9)netlbl_domhsh_validate(9)netlbl_domhsh_init(9)netlbl_domhsh_add(9)netlbl_domhsh_remove_entry(9)netlbl_domhsh_remove_af4(9)netlbl_domhsh_remove_af6(9)netlbl_domhsh_remove(9)netlbl_domhsh_remove_default(9)netlbl_domhsh_getentry(9)netlbl_domhsh_getentry_af4(9)netlbl_domhsh_getentry_af6(9)netlbl_domhsh_walk(9)
okay that's the whole page bestie, go forth and add your default entry responsibly π β¨
mwah π this lil writeup came from ./net/netlabel, dated October 2026 β catch you in the next manpage, ily π
π¦ 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