3 ms·
On Linux you can prevent being ptrace'd or having your core dumped by setting PR_SET_DUMPABLE in prctl. I've seen this used in places you'd expect like ssh-agen
by LittleShaman 3y ago
On Linux you can prevent being ptrace'd or having your core dumped by setting PR_SET_DUMPABLE in prctl. I've seen this used in places you'd expect like ssh-agent and GNOME's Keyring password manager.
Ctrl-f for 'PR_SET_DUMPABLE' in the manpages:
- https://man7.org/linux/man-pages/man2/prctl.2.html https://man7.org/linux/man-pages/man2/prctl.2.html
- https://man7.org/linux/man-pages/man2/ptrace.2.html https://man7.org/linux/man-pages/man2/ptrace.2.html