ima_match_rule_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ima_match_rule_data(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so welcome to the glow-up of the ima_match_rule_data page, straight out of the Kernel API Manual ✨ no cap, this one's short but she serves.


🌸 NAME 🌸

ima_match_rule_data β€” bestie, this is the girlie that determines whether func_data matches the policy rule. that's it, that's the job πŸ’…


✨ SYNOPSIS ✨

bool ima_match_rule_data (struct ima_rule_entry *rule , const char *func_data , const struct cred *cred );

she returns a bool, she takes three things, she's lowkey iconic 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rule β€” a pointer to a rule. literally just a pointer to a struct ima_rule_entry, the rule in question πŸ‘‘
  • func_data β€” the data to match against the measure rule data. this is the thing we're vibe-checking against the rule πŸ”₯
  • cred β€” a pointer to a credentials structure for user validation. yes she cares about who you are, main character energy fr πŸ’œ

🧚 DESCRIPTION 🧚

Returns true if func_data matches one in the rule, false otherwise.

that's the whole plot 😭 like, it's giving simple, it's giving clean, it's giving "one job and she does it". no extra lore, no surprise plot twists, just a good old-fashioned match check πŸ’–


🌈 SEE ALSO 🌈

Kernel file ./security/integrity/ima/ima_policy.c, plus her whole friend group β€” go say hi to:

iykyk, the IMA policy squad goes hard ⭐


and that's the page, bestie πŸŽ€ mwah! this little number lives in ./security/integrity/ima and the version/date stamp on her is October 2026 β€” so mark your calendar and stan responsibly πŸ‘‘πŸ’…πŸŒΈ

πŸ“¦ where this page comes from