Skip to content

make it possible to remotely inject python code into another python process#5135

Merged
cfbolz merged 8 commits into
mainfrom
remote-debugger-memory-write
Dec 10, 2024
Merged

make it possible to remotely inject python code into another python process#5135
cfbolz merged 8 commits into
mainfrom
remote-debugger-memory-write

Conversation

@cfbolz
Copy link
Copy Markdown
Member

@cfbolz cfbolz commented Nov 25, 2024

see #5133

this is the low level mechanism so far, it can be used to inject Python code into another PyPy process. Linux only, and you need root rights (or the ptrace settings need to be quite permissive).

@cfbolz cfbolz merged commit 62a47e4 into main Dec 10, 2024
disabled by default on most hardened Linux distributions by Yama__. Therefore
you might need sudo to run the above commands.

.. __Yama: https://www.kernel.org/doc/html/v4.15/admin-guide/LSM/Yama.html#ptrace-scope
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link doesn’t work: two underscores is for self-contained inline link, one underscore is needed for a forward reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants