tomoyo_path_permission(9)
π tomoyo_path_permission β Kernel API Manual π
π NAME π
tomoyo_path_permission β check permission for single path operation. periodt. π
β¨ SYNOPSIS β¨
okay bestie, hereβs the signature copied exactly so nobody has to squint:
int tomoyo_path_permission (struct tomoyo_request_info *r , u8 operation , const struct tomoyo_path_info *filename );
π ARGUMENTS π
rβ pointer tostruct tomoyo_request_info. yes, that request-info struct, iykyk. πoperationβ type of operation. literally the operation type. β¨filenameβ filename to check. the filename to check, no cap. π
π¦ DESCRIPTION π¦
Bestie, the whole contract is short and sweet: it returns 0 on success, and a negative value otherwise. thatβs the entire return vibe. π
Also important, straight from the og: caller holds tomoyo_read_lock. yes, thatβs part of the deal β donβt forget it. πΈ
π SEE ALSO π
the kernel file is ./security/tomoyo/file.c, and the friend group is huge β every single one of these refs is invited, no skips:
tomoyo_put_name_union(9)tomoyo_compare_name_union(9)tomoyo_put_number_union(9)tomoyo_compare_number_union(9)tomoyo_add_slash(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_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)
π signed off from ./security/tomoyo, October 2026 β tomoyo_path_permission(9) out. slay and stay safe, bestie π«Ά
π¦ 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