Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-03-16 19:36:54

New Member
From: Portugal
Registered: 2013-03-16
Posts: 1

Changing ptrace default value for debugging child processes

Linux crunchbang 3.2.0-4-686-pae #1 SMP Debian 3.2.35-2 i686 GNU/Linux


Help fund CrunchBang, donate to the project!

#2 2013-03-17 09:54:28

The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Changing ptrace default value for debugging child processes

       PR_SET_PTRACER (since Linux 3.4)
              This is only meaningful when the Yama LSM is enabled and in mode 1
              ("restricted ptrace", visible via
              /proc/sys/kernel/yama/ptrace_scope).  When a "ptracer process ID" is
              passed in arg2, the caller is declaring that the ptracer process can
              ptrace(2) the calling process as if it were a direct process
              ancestor.  Each PR_SET_PTRACER operation replaces the previous
              "ptracer process ID".  Employing PR_SET_PTRACER with arg2 set to 0
              clears the caller's "ptracer process ID".  If arg2 is
              PR_SET_PTRACER_ANY, the ptrace restrictions introduced by Yama are
              effectively disabled for the calling process.

              For further information, see the kernel source file

Seems like you need a more recent kernel for that.


Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo