Re: open failed: illegal insecure pathname



Dave (from the UK) wrote:
Some may recall the hassles I have with Mathematica on Solaris using
tons of CPU time which was caused by a change in Solaris 10 which I
understand will be patched at some point.

Casper *** wrote a bit of library code which I preloaded to change the
behavior of select. This I saved as select_preload.so

BUT

*Sometimes* Mathematical will fail to load the library, coming up with
this message in is "Error Console".

ld.so.1: prtconf: warning: /usr/lib/sparcv9/select_preload.so: open
failed: illegal insecure pathname

problem here is prtconf which is actually a setgid executable (64-bit
version):

ls -l /usr/sbin/sparcv9/prtconf

For setuid/setgid executables your preloaded code has to be read from a
trusted directory for secure ELF objects. One default trusted directory
for 64 bit is /usr/lib/secure/64. Try to load your
code from there or define your own trusted directory via
clre -64 -s

It would be much better to unset LD_PRELOAD before extern executables
get started because this code should only be used by mathematica.

Rainer


.