ima_get_action(9)
π 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 setspcr=.template_descβ pointer filled in if matched measure policy setstemplate=.func_dataβ func specific data, may beNULL.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
- 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