ima_file_mmap(9)
π ima_file_mmap(9) π
okay so bestie, this page is from the Kernel API Manual and it's all about ima_file_mmap. no cap, it's short but important π
πΈ NAME πΈ
ima_file_mmap β based on policy, collect/store measurement.
β¨ SYNOPSIS β¨
int ima_file_mmap (struct file *file , unsigned long reqprot , unsigned long prot , unsigned long flags );
π ARGUMENTS π
fileβ pointer to the file to be measured (May be NULL) πreqprotβ protection requested by the applicationprotβ protection that will be applied by the kernelflagsβ operational flags
π DESCRIPTION π
okay so the vibe here is: measure files being mmapped executable based on the ima_must_measure policy decision. that's the whole job, and it's giving kernel-security main character energy π₯
On success return 0. On integrity appraisal error, assuming the file is in policy and IMA-appraisal is in enforcing mode, return -EACCES. so yeah, that's the error case bestie π
π SEE ALSO π
Kernel file: ./security/integrity/ima/ima_main.c
ima_file_free(9)ima_file_mprotect(9)ima_bprm_check(9)ima_creds_check(9)ima_bprm_creds_for_exec(9)ima_file_check(9)ima_file_hash(9)ima_inode_hash(9)ima_post_create_tmpfile(9)ima_post_path_mknod(9)ima_read_file(9)ima_post_read_file(9)ima_load_data(9)ima_post_load_data(9)process_buffer_measurement(9)ima_kexec_cmdline(9)ima_measure_critical_data(9)ima_measure_raw_policy(9)ima_kernel_module_request(9)
that's the whole page, bestie π«Ά the footer's source is ./security/integrity/ima and the date is October 2026 β slay and bye π
π¦ 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