o
odinpkg.dev
packages / binding / odin-linux-sys

odin-linux-sys

e536af9binding

No description provided.

No license · updated 5 months ago

This is important for hacking processes. echo 1 | sudo tee /proc/sys/kernel/yama/ptrace_scope

This command modifies Linux kernel security settings for process tracing:

Breaking it down:

  • echo 0 - outputs the value 0
  • | - pipes that output to the next command
  • sudo tee /proc/sys/kernel/yama/ptrace_scope - writes 0 to the kernel parameter file with elevated privileges

What it does:

The ptrace_scope setting controls who can use ptrace (and related syscalls like process_vm_readv/writev) to inspect/modify other processes:

  • 0 = Classic ptrace behavior - any process can ptrace any other process owned by the same user
  • 1 = Restricted (default on many distros) - only parent processes can ptrace their children, unless a process explicitly allows it
  • 2 = Admin-only - only processes with CAP_SYS_PTRACE capability can ptrace
  • 3 = No ptrace - completely disabled

By setting it to 0, you're allowing your process to read/write memory of other processes you own (like your game) without needing a parent-child relationship.

Security note: This is a system-wide setting that reduces security. After testing, you might want to set it back to 1 with:

echo 1 | sudo tee /proc/sys/kernel/yama/ptrace_scope