tomoyo_scan_bprm(9)
π 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 aconst u16and 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, oneenvcis 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:
tomoyo_argv(9)tomoyo_envp(9)tomoyo_scan_exec_realpath(9)tomoyo_get_dqword(9)tomoyo_parse_name_union_quoted(9)tomoyo_parse_argv(9)tomoyo_parse_envp(9)tomoyo_same_condition(9)tomoyo_condition_type(9)tomoyo_commit_condition(9)tomoyo_get_transit_preference(9)tomoyo_get_condition(9)tomoyo_get_attributes(9)tomoyo_condition(9)
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
- 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