selinux_audit_rule_match(9)
π selinux_audit_rule_match(9) π
okay so bestie, weβre in the Kernel API Manual and this page is literally about selinux_audit_rule_match β the vibe check for whether a context ID matches a rule. no cap β¨
πΈ NAME πΈ
selinux_audit_rule_match β determine if a context ID matches a rule. π
β¨ SYNOPSIS β¨
int selinux_audit_rule_match (struct lsm_prop *prop , u32 field , u32 op
, void *rule );
π ARGUMENTS π
propβ includes the context ID to check, bestie π«Άfieldβ the field this rule refers to, periodtopβ the operator the rule uses, slay πruleβ pointer to the audit rule to check against π₯
π¦ DESCRIPTION π¦
Okay so the tea β: this one returns 1 if the context id matches the rule, 0 if it does not, and -errno on failure. Thatβs the whole plot β short and iconic ππ
π SEE ALSO π
- Kernel file
./security/selinux/include/audit.h selinux_audit_rule_avc_callback(9)selinux_audit_rule_init(9)selinux_audit_rule_free(9)selinux_audit_rule_known(9)
okay bestie, page over! this one came from ./security/selinux/include, dated October 2026, and the footer says selinux_audit_rule_match(9). 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