selinux_audit_rule_free(9)
π selinux_audit_rule_free(9) β free an selinux audit rule structure π
β¨ NAME β¨
selinux_audit_rule_free β free an selinux audit rule structure. No cap, that's the whole job π
πΈ SYNOPSIS πΈ
void selinux_audit_rule_free (void *rule );
π¦ ARGUMENTS π¦
ruleβ pointer to the audit rule to be freed
π DESCRIPTION π
Okay so this one is lowkey simple, bestie: it frees all memory associated with the given rule. That's it. That's the vibe β¨
And if rule is NULL, no operation is performed. Literally nothing happens. No drama, no crash, just peaceful main-character silence π«Ά
If you're holding a NULL pointer, you're safe here. The function just minds its own business π
π SEE ALSO π
- Kernel file
./security/selinux/include/audit.h selinux_audit_rule_avc_callback(9)selinux_audit_rule_init(9)selinux_audit_rule_match(9)selinux_audit_rule_known(9)
Sign-off time, bestie: this iconic little page comes from the Kernel API Manual, source/version ./security/selinux/include, dated October 2026. Go forth and free those rules responsibly ππ₯π
π¦ 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