3 ms·
Checking $PATH or explicitly calling outside resources is probably also advisible. In general, this article seems very light. No mention of LD_LIBRARY_PATH, f
by tyingq 7y ago
Checking $PATH or explicitly calling outside resources is probably also advisible.
In general, this article seems very light. No mention of LD_LIBRARY_PATH, for example. I imagine there's probably a better guide to writing secure scripts somewhere else.
- lalaland1125 7y agoThese sorts of security measures are only really necessary when you have a setuid or setgid shell script. (However, a much better suggestion would be to simply not write setuid or setgid shell scripts because they are a security nightmare.)