netlbl_domhsh_audit_add(9)
π netlbl_domhsh_audit_add β a Kernel API Manual moment π
okay so bestie, we're in netlbl_domhsh_audit_add(9) territory and honestly? it's giving "quiet little helper that keeps the receipts" β¨ picture the auditor of the NetLabel domain hash table, just scribbling down what happened so nothing gets lost. lowkey iconic of it.
β¨ NAME β¨
netlbl_domhsh_audit_add β generate an audit entry for an add event π
π¦ SYNOPSIS π¦
void netlbl_domhsh_audit_add (struct netlbl_dom_map *entry , struct
netlbl_af4list *addr4 , struct netlbl_af6list *addr6 , int result ,
struct netlbl_audit *audit_info );
like, yes, it's a void function, it doesn't return anything, it just does the thing. main character behavior fr fr π
πΈ ARGUMENTS πΈ
entryβ the entry being added π this is the one getting its moment in the audit recordaddr4β the IPv4 address information πaddr6β the IPv6 address information π¦resultβ the result code, so the record knows how it went πaudit_infoβ the NetLabel audit information π
π DESCRIPTION π
So what does it actually do? It generates an audit record for adding a new NetLabel/LSM mapping entry, using all the info you handed it π that's the whole vibe.
β οΈ important caveat bestie, do NOT skip this one: the caller is responsible for holding the necessary locks. the function is not out here grabbing locks for you, that's on you, no cap π
π SEE ALSO π
Kernel file ./net/netlabel/netlabel_domainhash.c β the source, the homeland, the origin story π«Ά
and the whole friend group:
netlbl_domhsh_free_entry(9)netlbl_domhsh_hash(9)netlbl_domhsh_search(9)netlbl_domhsh_search_def(9)netlbl_domhsh_validate(9)netlbl_domhsh_init(9)netlbl_domhsh_add(9)netlbl_domhsh_add_default(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)
and that's the page, bestie!! π this lil gem lives at ./net/netlabel, stamped October 2026 β go forth and audit responsibly, mwah ππ
π¦ 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