ima_match_rules(9)
π NAME π
okay so bestie, this is ima_match_rules(9) from the Kernel API Manual, and the name is literally the whole assignment: ima_match_rules β determine whether an inode matches the policy rule. no cap, that's the gig. π
β¨ SYNOPSIS β¨
bool ima_match_rules (struct ima_rule_entry *rule , struct mnt_idmap
*idmap , struct inode *inode , const struct cred *cred , struct lsm_prop
*prop , enum ima_hooks func , int mask , const char *func_data );
π¦ ARGUMENTS π¦
ruleβ a pointer to a rule. iconic.idmapβ idmap of the mount the inode was found from.inodeβ a pointer to an inode.credβ a pointer to a credentials structure for user validation.propβ LSM properties of the task to be validated.funcβLIMhook identifier. (yes,LIM, bestie β we're reading it exactly as the page says π )maskβ requested action (MAY_READ | MAY_WRITE | MAY_APPEND | MAY_EXEC).func_dataβ func specific data, may beNULL.
πΈ DESCRIPTION πΈ
Returns true on rule match, false on failure. that's it. that's the whole vibe check. periodt. π
π₯ SEE ALSO π₯
Kernel file ./security/integrity/ima/ima_policy.c β go read it, bestie, it's giving source.
ima_match_rule_data(9)ima_match_policy(9)ima_update_policy_flags(9)ima_init_policy(9)ima_update_policy(9)ima_parse_add_rule(9)ima_delete_rules(9)ima_measure_loaded_policy(9)
this cutie came from ./security/integrity/ima, dated October 2026, and it's the ima_match_rules(9) page β 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