Re:How to move a running process into a tmux session (2020)
by metadat on Tuesday October 04, 2022 @09:56PM
(#33090096)
What are the costs and / or downsides to enabling prace_scope?
[ Parent
| on HN ]
Re:How to move a running process into a tmux session (2020)
by ollien on Tuesday October 04, 2022 @10:45PM
(#33090468)
https://askubuntu.com/a/153970
> What are the risks in setting ptrace_scope to 0?
> - This restores the old behavior where one process can "trace" another process, even if there is no parent-child relationship.
> - In theory, a piece of malware can use this to harm you/your computer; e.g. it can attach to Firefox and log all of your URLs/passwords, etc. In practice this is extremely unlikely unless you blindly install binary debs from random sites, etc.
> - As far as debugging goes, the 0 settings is in fact required for gdb, strace, etc. to attach to non-children unless you run them with elevated privileges (sudo).