ima_get_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ima_get_action(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for ima_get_action(9) β€” the appraise & measure decision based on policy one. we're doing this like a group chat, but every single detail is staying. no cap. πŸ’…

πŸŽ€ NAME πŸŽ€

ima_get_action β€” appraise & measure decision based on policy.

✨ SYNOPSIS ✨

       int ima_get_action (struct mnt_idmap *idmap , struct inode *inode ,
       const struct cred *cred , struct lsm_prop *prop , int mask , enum
       ima_hooks func , int *pcr , struct ima_template_desc **template_desc ,
       const char *func_data , unsigned int *allowed_algos );

🫢 ARGUMENTS 🫢

  • idmap β€” idmap of the mount the inode was found from.
  • inode β€” pointer to the inode associated with the object being validated.
  • cred β€” pointer to credentials structure to validate.
  • prop β€” properties of the task being validated.
  • mask β€” contains the permission mask (MAY_READ, MAY_WRITE, MAY_EXEC, MAY_APPEND).
  • func β€” caller identifier.
  • pcr β€” pointer filled in if matched measure policy sets pcr=.
  • template_desc β€” pointer filled in if matched measure policy sets template=.
  • func_data β€” func specific data, may be NULL.
  • allowed_algos β€” allowlist of hash algorithms for the IMA xattr.

🧚 DESCRIPTION 🧚

The policy is defined in terms of keypairs: subj=, obj=, type=, func=, mask=, fsmagic=. The subj, obj, and type: are LSM specific.

For func:, the values are FILE_CHECK | BPRM_CHECK | CREDS_CHECK | MMAP_CHECK | MODULE_CHECK | KEXEC_CMDLINE | KEY_CHECK | CRITICAL_DATA | SETXATTR_CHECK | MMAP_CHECK_REQPROT.

mask: contains the permission mask. fsmagic: is a hex value.

Returns IMA_MEASURE, IMA_APPRAISE mask.

🌈 SEE ALSO 🌈

  • Kernel file ./security/integrity/ima/ima_api.c

mwah πŸ’‹ this page comes from source/version ./security/integrity/ima, dated October 2026 β€” xoxo, your kernel bestie. ima_get_action(9) out. 🫢✨

πŸ“¦ where this page comes from