tomoyo_print_bprm(9)
π 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 tostruct linux_binprmπ«Ά like, the actual binprm you want dumped, hand her the pointer and she'll handle it.dumpβ a pointer tostruct 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 useskzalloc, so if she doesn't returnNULL, the caller mustkfreeπ¨ 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:
tomoyo_filetype(9)tomoyo_print_header(9)tomoyo_init_log(9)tomoyo_get_audit(9)tomoyo_write_log2(9)tomoyo_write_log(9)tomoyo_read_log(9)tomoyo_poll_log(9)
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
- 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