tomoyo_cred_prepare(9)
π tomoyo_cred_prepare(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, that's the manual name, we're in Kernel API Manual territory, and today's main character is tomoyo_cred_prepare(9). buckle up π
πΈ NAME πΈ
tomoyo_cred_prepare β literally just the target for security_prepare_creds(). that's it. that's the whole vibe. no cap π
β¨ SYNOPSIS β¨
int tomoyo_cred_prepare (struct cred *new , const struct cred *old ,
gfp_t gfp );
look at her. iconic signature. three args, one int, zero drama π¦
π ARGUMENTS π
newβ pointer to"struct cred"π (the new one, the fresh one, the glow-up)oldβ pointer to"struct cred"π«Ά (the one that came before, the blueprint)gfpβ memory allocation flags β (the little instructions for how memory gets grabbed)
π DESCRIPTION π
Returns 0.
that's it. that's the entire description. she returns 0 and she's valid for it, periodt π₯ no cap, the whole function's personality is "returns 0". main character energy but make it minimal π
π§ SEE ALSO π§
so like, the kernel file is ./security/tomoyo/tomoyo.c and it's giving whole extended family β here's everyone in the group chat:
tomoyo_domain(9)tomoyo_bprm_committed_creds(9)tomoyo_bprm_creds_for_exec(9)tomoyo_bprm_check_security(9)tomoyo_inode_getattr(9)tomoyo_path_truncate(9)tomoyo_file_truncate(9)tomoyo_path_unlink(9)tomoyo_path_mkdir(9)tomoyo_path_rmdir(9)tomoyo_path_symlink(9)tomoyo_path_mknod(9)tomoyo_path_link(9)tomoyo_path_rename(9)tomoyo_file_fcntl(9)tomoyo_file_open(9)tomoyo_file_ioctl(9)tomoyo_path_chmod(9)tomoyo_path_chown(9)tomoyo_path_chroot(9)tomoyo_sb_mount(9)tomoyo_sb_umount(9)tomoyo_sb_pivotroot(9)tomoyo_socket_listen(9)tomoyo_socket_connect(9)tomoyo_socket_bind(9)tomoyo_socket_sendmsg(9)tomoyo_task_alloc(9)tomoyo_task_free(9)tomoyo_init(9)
like, that's the whole friend group fr fr π
lowkey obsessed with how short this page is. ngL it ate. π
and that's a wrap bestie! π this page lives in ./security/tomoyo, dated October 2026, and it signs off as tomoyo_cred_prepare(9) β slay, goodbye, go read your kernel source π
π
π¦ 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