ima_post_create_tmpfile(9)
π ima_post_create_tmpfile β like, the Kernel API Manual page, bestie β¨
okay so real talk, this is ima_post_create_tmpfile(9) from the Kernel API Manual, and it's honestly a tiny little icon. she doesn't do much but she matters. let's get into it π«Ά
πΈ NAME πΈ
ima_post_create_tmpfile β mark a newly created tmpfile as new π
β¨ SYNOPSIS β¨
void ima_post_create_tmpfile (struct mnt_idmap *idmap , struct inode
*inode );
that's it. that's the whole vibe. no return value, she just does the thing and dips π
π¦ ARGUMENTS π¦
idmapβ the idmap of the mount that the inode was found from. like, which mount did this inode come from, bestie? this tells you πinodeβ the inode of the newly created tmpfile. the main character herself π
π DESCRIPTION π
okay so here's the tea β β for newly created tmpfiles, there is no measuring, no appraising, and no auditing needed. none. zero. not the vibe. so we skip calling process_measurement entirely, no cap.
but!! (and this is the important part) we do still need to indicate which newly created tmpfiles are in policy. so she's not doing nothing β she's marking them, lowkey. π
bestie pls don't skip the "in policy" part, that's literally the whole point of the function π
π₯ SEE ALSO π₯
- Kernel file
./security/integrity/ima/ima_main.c ima_file_free(9)ima_file_mmap(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_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)
like, go read her friends too, they're all iconic in their own way π
mwah π this page lives at ./security/integrity/ima, and it's dated October 2026 β so she's serving future energy, periodt. bye bestie, go mark some tmpfiles as new β¨π¦π
π¦ 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