I am observing a curious behavior when running a program with
setuid bit enabled.
foo is owned by user
bar with setuid bit set.
foo reports that one of the dynamic libraries is inaccessible.
The dynamic library in question is located in a directory outside the normal
ld.so.conf search paths so it's set via
LD_LIBRARY_PATH for user
The question is: Is running a program with
setuid clears the environment set by user