0
Use chatr to change program's internal attributes on HPUX
Posted by sanjay
on
9:08 AM
gives the following
man chatr
chatr(1)
NAME
chatr - change program's internal attributes
....
We needed to use chatr to enable libcrypto.sl to be loaded dynamically from SH_LIBPATH instead of statically from a location on HPUX32 bit system. This definitely poses a security risk... but it is convinient
This issue is related to the lib file is not taken from SHLIB_PATH, so we need to run the following command first, then it will work fine.
chatr +s enable
This will enable libcrypto.sl to be dynamically linked and picked up from SHLIB_PATH for ldapdelete. This will need to be done for all the binaries under the
Once source binaries are modified with this attribute, they can be copied to another machine and they will still allow loading the libraries dynamically. Perhaps a
chatr +s disable /libcrypto.sl /ldapdelete
would disable dynamic loading. Need to experiment