tomoyo_add_slash(9)
π tomoyo_add_slash(9) π
okay so welcome to the Kernel API Manual, bestie β this is the page for tomoyo_add_slash, and it's honestly a tiny little icon. no cap, it does exactly one thing and does it slayfully. let's get into it π
β¨ NAME β¨
tomoyo_add_slash β adds a trailing '/' if it's needed. that's it. that's the whole job. she's a one-task queen π
πΈ SYNOPSIS πΈ
void tomoyo_add_slash (struct tomoyo_path_info *buf );
π¦ ARGUMENTS π¦
bufβ a pointer to"struct tomoyo_path_info". yes, with the quotes, the manpage is quoting the type name at you and honestly? respect. π
β DESCRIPTION β
so what does it return? nothing. returns nothing. void city, population: zero. π
but here's the important part, bestie, and like⦠do not skip this one:
bufmust be generated bytomoyo_encodeβ because this function does not allocate memory for adding'/'. it just slides that slash in wherever it goes. no malloc, no safety net, no vibes check. so ifbufdidn't come fromtomoyo_encode, that's on you, not on her π
π SEE ALSO π
okay this list is long β it's giving main character energy of the entire ./security/tomoyo/file.c file (kernel file, fyi, that's where she lives). every single one of these, no skips, no cuts, we're doing the whole roll call π₯
tomoyo_put_name_union(9)tomoyo_compare_name_union(9)tomoyo_put_number_union(9)tomoyo_compare_number_union(9)tomoyo_get_realpath(9)tomoyo_audit_path_log(9)tomoyo_audit_path2_log(9)tomoyo_audit_mkdev_log(9)tomoyo_audit_path_number_log(9)tomoyo_check_path_acl(9)tomoyo_check_path_number_acl(9)tomoyo_check_path2_acl(9)tomoyo_check_mkdev_acl(9)tomoyo_same_path_acl(9)tomoyo_merge_path_acl(9)tomoyo_update_path_acl(9)tomoyo_same_mkdev_acl(9)tomoyo_merge_mkdev_acl(9)tomoyo_update_mkdev_acl(9)tomoyo_same_path2_acl(9)tomoyo_merge_path2_acl(9)tomoyo_update_path2_acl(9)tomoyo_path_permission(9)tomoyo_execute_permission(9)tomoyo_same_path_number_acl(9)tomoyo_merge_path_number_acl(9)tomoyo_update_path_number_acl(9)tomoyo_path_number_perm(9)tomoyo_check_open_permission(9)tomoyo_path_perm(9)tomoyo_mkdev_perm(9)tomoyo_path2_perm(9)tomoyo_same_mount_acl(9)tomoyo_update_mount_acl(9)tomoyo_write_file(9)
likeβ¦ 35 entries. she said "my friends are my power" and meant it fr fr π«Ά
and that's the whole page!! short, sweet, slashes only when necessary. this absolute gem lives over in ./security/tomoyo and the version we're looking at is dated October 2026. mwah, go add some slashes responsibly, 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