trace_cap_capable(9)
π trace_cap_capable(9) β a Kernel API Manual moment β¨
okay bestie, so this is a page from the Kernel API Manual, and it's about trace_cap_capable β literally the little hook that fires right after the kernel has figured out whether a task actually holds a particular effective capability. it's giving "backstage pass to the permission check" energy ποΈ
πΈ NAME πΈ
trace_cap_capable β called after it's determined if a task has a particular effective capability π
β SYNOPSIS β
void trace_cap_capable (const struct cred *cred , struct user_namespace
*target_ns , const struct user_namespace *capable_ns , int cap , int ret
);
no cap, that's the whole signature π«Ά
π ARGUMENTS π
credβ the credentials being used, iykyk πtarget_nsβ the user namespace of the resource that's being accessed πcapable_nsβ the user namespace where the credential actually provides the capability to access the targeted resource. heads up bestie: this one isNULLifretis not 0 πcapβ the capability we're checking for πretβ the return value of the check:0if it does,-veif it does not π
π¦ DESCRIPTION π¦
it lets you trace calls to cap_capable in commoncap.c β that's it, that's the whole vibe. main character tracepoint energy π
π SEE ALSO π
- Kernel file
./include/trace/events/capability.hπ
and that's the whole page, bestie β no crumbs left behind π
signing off from ./include/trace/events, dated October 2026, page trace_cap_capable(9) β slay, go trace some capabilities, periodt π
β¨π
π¦ 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