hook_ptrace_traceme(9)
π hook_ptrace_traceme(9) π
okay bestie, welcome to the Kernel API Manual β this is the page for hook_ptrace_traceme(9), and it's literally a permission vibe check for tracing. no cap. π«Ά
β¨ NAME β¨
hook_ptrace_traceme β Determines whether another process may trace the current one
πΈ SYNOPSIS πΈ
int hook_ptrace_traceme (struct task_struct *const parent );
π ARGUMENTS π
parentβ Task proposed to be the tracer.
That's the one argument, bestie. parent is the task that's proposed to be the tracer. π
π¦ DESCRIPTION π¦
So here's the situation: if the parent has Landlock rules, then the current task must have the same or more rules. Else denied. That's the whole rule, fr fr. π
π₯ RETURN π₯
0β if permission is granted-errnoβ if denied
Slay if you get 0; if it's denied, you get -errno. periodt. π
π SEE ALSO π
Kernel file ./security/landlock/task.c domain_scope_le(9), hook_ptrace_access_check(9), domain_is_scoped(9)
mwah π β this cutie came from the ./security/landlock source/version, October 2026 edition. bye 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