mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 04:26:30 +08:00
Merge pull request #487 from mkwardakov/ldd-secure
Fix #428: add ldd security warning
This commit is contained in:
commit
6b914dc64a
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir
|
|||
|
||||
- Know about `strace` and `ltrace`. These can be helpful if a program is failing, hanging, or crashing, and you don't know why, or if you want to get a general idea of performance. Note the profiling option (`-c`), and the ability to attach to a running process (`-p`). Use trace child option (`-f`) to avoid missing important calls.
|
||||
|
||||
- Know about `ldd` to check shared libraries etc.
|
||||
- Know about `ldd` to check shared libraries etc — but [never run it on untrusted files](http://www.catonmat.net/blog/ldd-arbitrary-code-execution/).
|
||||
|
||||
- Know how to connect to a running process with `gdb` and get its stack traces.
|
||||
|
||||
|
|
Loading…
Reference in a new issue