selinux_audit_rule_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, periodt
  • op β€” 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 🌈


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