tomoyo_print_bprm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_print_bprm πŸ’–

okay so bestie, welcome to the tomoyo_print_bprm(9) page from the Kernel API Manual ✨ this one's a little function with one job and she does it flawlessly, no cap.


🌸 NAME 🌸

tomoyo_print_bprm β€” literally prints out your struct linux_binprm for auditing purposes πŸŽ€ that's it, that's the whole gig, and she ate.


✨ SYNOPSIS ✨

char * tomoyo_print_bprm (struct linux_binprm *bprm , struct
tomoyo_page_dump *dump );

look at her go 😭 so clean, so iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bprm β€” a pointer to struct linux_binprm 🫢 like, the actual binprm you want dumped, hand her the pointer and she'll handle it.
  • dump β€” a pointer to struct tomoyo_page_dump πŸ’… the dump sidekick, she needs it, don't leave her hanging.

πŸ’œ DESCRIPTION πŸ’œ

So what does she actually do? On success she returns the contents of bprm πŸ”₯ and if things don't go her way? NULL. That's it. No drama, no mystery, just results or NULL πŸ’€

⚠️ ok listen β€” this function uses kzalloc, so if she doesn't return NULL, the caller must kfree 🚨 like, you asked for the memory, bestie, you clean it up. main character energy means taking responsibility for your own allocations 😀✨

πŸ‘‘ SEE ALSO πŸ‘‘

go check out the kernel file ./security/tomoyo/audit.c 🌈 bestie behaviour, honestly. and then these icons:

all of them? squad goals πŸ’–πŸ«Ά


mwah πŸ’‹ that's the whole page β€” brought to you from ./security/tomoyo in the October 2026 era of the tomoyo_print_bprm(9) manual, iykyk βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from