tomoyo_scan_bprm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_scan_bprm(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're in the kernel docs girlies now 🫢 and today's main character is tomoyo_scan_bprm. no cap, it's a whole function and it's lowkey iconic.


✨ NAME ✨

tomoyo_scan_bprm β€” literally does what it says: it scans "struct linux_binprm". that's the vibe. πŸ’«


πŸŽ€ SYNOPSIS πŸŽ€

bool tomoyo_scan_bprm (struct tomoyo_execve *ee , const u16 argc , const
       struct tomoyo_argv *argv , const u16 envc , const struct tomoyo_envp
       *envp );

it returns a bool, bestie. careful with the types, they're all right there and they do NOT want to be changed. πŸ™ˆ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ee β€” pointer to "struct tomoyo_execve". yeah, it's a pointer. she's pointing at her own special little struct. 🫢
  • argc β€” the length of argc. that's it, that's the whole thing, it's a const u16 and it's counting. πŸ”₯
  • argv β€” pointer to "struct tomoyo_argv". another pointer, we love consistency. ✨
  • envc β€” the length of envp. note: it's the length of envp, not argc, don't get it twisted bestie. πŸ’€
  • envc... wait no, one envc is enough 😭 β€” the last one is:
  • envp β€” pointer to "struct tomoyo_envp". she's bringing the environment energy. 🌸

🌈 DESCRIPTION 🌈

okay so the whole plot: it returns true on success, and false otherwise. that's the entire description, no notes, no cap. short and slay. πŸ’…

like honestly? a queen who knows exactly what she does and says no more than that. periodt. πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./security/tomoyo/condition.c β€” and the whole friend group she rolls with:

iykyk, that's the whole squad β€” go read them too, bestie, they all ate. πŸ“


and that's the page!! πŸ’– brought to you straight out of ./security/tomoyo, dated October 2026 β€” so like, from the future, which is very main character energy of her. see u in the next manpage, mwah πŸ§šπŸ’œ

πŸ“¦ where this page comes from