tomoyo_current_namespace(9)
πΈ TOMOYO_CURRENT_NAMESPACE π
okay so bestie, welcome to the tomoyo_current_namespace(9) page β it lives in the Kernel API Manual and it is, and I say this with love, a whole little one-trick pony. Let's get into it β¨
π NAME π
tomoyo_current_namespace β get ya girl the "struct tomoyo_policy_namespace" for the current thread π«Ά
π¦ SYNOPSIS π¦
struct tomoyo_policy_namespace * tomoyo_current_namespace (void );
like that's literally the whole signature, no cap. she takes nothing and gives you a pointer π
π ARGUMENTS π
voidβ no arguments. none. zero. the void is voiding π nothing to pass in, nothing to worry about, just vibes.
β¨ DESCRIPTION β¨
so what she does is: she returns a pointer to "struct tomoyo_policy_namespace" for the current thread. that's it. that's the tea β
pointer to the policy namespace, for the current thread specifically β like she knows exactly who's asking and hands them their own little namespace pointer. main character energy tbh π
no args in, one pointer out. iconic behaviour, honestly π
π₯ SEE ALSO π₯
the whole friend group, gathered for your convenience π«Ά go say hi:
- kernel file
./security/tomoyo/common.h tomoyo_read_lock(9)tomoyo_read_unlock(9)tomoyo_sys_getppid(9)tomoyo_sys_getpid(9)tomoyo_pathcmp(9)tomoyo_put_name(9)tomoyo_put_condition(9)tomoyo_put_group(9)tomoyo_task(9)tomoyo_same_name_union(9)tomoyo_same_number_union(9)tomoyo_same_ipaddr_union(9)list_for_each_cookie(9)
ngl bestie this one is short and sweet β no flags, no exit statuses, no scary caveats. just a pointer and a dream π
and that's the page!! mwah π this lil cutie comes to you from ./security/tomoyo, dated October 2026, and she's signing off β stay slay, stay in your own namespace, and don't forget to lock before you read π§πβ
π¦ 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