3 ms·
That's the wrong way to solve this. You have to assume people don't read the manual, especially for security issues. The correct solution is that `ldd` should
by IshKebab 3y ago
That's the wrong way to solve this. You have to assume people don't read the manual, especially for security issues.
The correct solution is that `ldd` should be safe by default, and require a `--allow-unsafe-execution` flag if it needs to actually execute code.
I think this is pretty well known these days but probably not well known enough!
- gpvos 3y agoToo backwards incompatible maybe, although you could add a check on whether the output is a tty, like ls does; I don't know how often ldd is used in scripts.