2 ms·
strace uses ptrace, which is not safe for security use because of race conditions. Linux Security Modules should be used. https://stackoverflow.com/a/4421762/7
by remram 4y ago
strace uses ptrace, which is not safe for security use because of race conditions. Linux Security Modules should be used.
https://stackoverflow.com/a/4421762/711380 https://stackoverflow.com/a/4421762/711380
- ashishbijlani 4y agoThanks for highlighting this! While PTRACE introduces TOCTTOU vulnerabilities, Packj sandboxes fixes that by using read-only args for ptrace. You can find my PhD work [1] on this relevant. 1. https://lwn.net/Articles/803890/ https://lwn.net/Articles/803890/