Can't set LD_LIBRARY_PATH in .gnomerc

ZIYAD A. M. AL-BATLY zamb at spymac.com
Sun Apr 24 18:44:05 UTC 2005


On Sun, 2005-04-24 at 20:07 +0300, ZIYAD A. M. AL-BATLY wrote:
> (If anyone have more info on the subject, please enlighten us!)
> 
> Okay.  It seem that it's an intended behaviour for security reasons.
> Quote from ld.so man page:
>         The necessary shared libraries needed by the program are
>         searched for in the following order
>               * Using the environment variable LD_LIBRARY_PATH.  Except
>                 if the executable is a setuid/setgid binary, in which
>                 case it is ignored.
> 
> The file ~/.gnomerc is actually sourced *before* GNOME is loaded, and
> it's done by X, and because X is a setuid executable, will,
> LD_LIBRARY_PATH is ignored!  (By the way, ~/.gnomerc is sourced from the
> file:
>         /etc/X11/Xsession.d/55gnome-session_gnomerc
> in case you wanted to know that.)
> 
> The best solution for you (in my not-so-experienced opinion) is to put
> the LD_LIBRARY_PATH setting in /etc/profile.  Be warned that *all* users
> will be affected by that.
> 
> Ziyad.

Just ignore my message.  After further reading, I begun to believe that
the setuid issue will make the application that's setuid ignore the
LD_LIBRARY_PATH but it wont change/unset it.  So, apparently, your
problem lies somewhere else.


Sorry for not being any help.
As I wrote previously:
         If anyone have more info on the subject, please help!

Ziyad.





More information about the ubuntu-users mailing list