ima_file_mmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 application
  • prot β€” protection that will be applied by the kernel
  • flags β€” 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


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