|
From: | Ivan Vučica |
Subject: | Re: Setting up GNUstep.sh on system profile loses LD_LIBRARY_PATH |
Date: | Fri, 04 Dec 2015 10:12:43 +0000 |
Yeah, I am using this for libobjc2 living in a custom directory:
echo "/path/to/library/directory" | sudo tee /etc/ld.so.conf.d/GNUstep.conf
sudo ldconfig -n "/path/to/library/directory" -v
But here is a question: why is gopen setuid root?
So it seems:On Linux, when a setuid (or setgid) program is ran, it does not receive certain environment variables (includingLD_LIBRARY_PATH
, several otherLD_*
variables, andHOSTALIASES
), in order to reduce the possible attack points: Otherwise you could write a small library and tricksu
orsudo
into calling your "improved" functions that waySo, an entry in /etc/ld.so.conf.d is needed...._______________________________________________On Wed, Dec 2, 2015 at 10:26 PM, Luis Garcia Alanis <luis@garcia.tv> wrote:Ups, ctrl+enter sent the mail :PI am using ubuntu 15.10, I am setting GNUstep.sh to be sourced on /etc/profile.d/gnustep.shWhen I open a terminal on X and try to gopen I get an error:gopen: error while loading shared libraries: libgnustep-gui.so.0.24: cannot open shared object file: No such file or directoryUpon more investigation I see, the GNUstep enviroment is set but not the LD_LIBRARY_PATH.$ env | grep gnustepDEFAULTS_PATH=/usr/share/gconf/gnustep.default.pathXDG_CONFIG_DIRS=/etc/xdg/xdg-gnustep:/etc/xdgDESKTOP_SESSION=gnustepMANDATORY_PATH=/usr/share/gconf/gnustep.mandatory.pathGDMSESSION=gnustepXDG_SESSION_DESKTOP=gnustepXDG_DATA_DIRS=/usr/share/gnustep:/usr/share/gnome:/usr/local/share/:/usr/share/$ env | grep GNUSTEPGNUSTEP_IS_FLATTENED=yesGNUSTEP_LOCAL_ROOT=/LocalGNUSTEP_HOST=x86_64-unknown-linux-gnuGNUSTEP_MAKEFILES=/System/Library/MakefilesGNUSTEP_NETWORK_ROOT=/NetworkGNUSTEP_FLATTENED=yesGNUSTEP_HOST_OS=linux-gnuGNUSTEP_HOST_VENDOR=unknownGNUSTEP_HOST_CPU=x86_64GNUSTEP_USER_ROOT=/home/luis/GNUstepGNUSTEP_SYSTEM_ROOT=/SystemGNUSTEP_PATHLIST=/System:/Network:/Local:/home/luis/GNUstepI think this is a bug, any ideas?if I run . /System/Library/Makefiles/GNUstep.sh from the command line then is set correctly.is there a difference on the profile enviroment that would prevent LD_LIBRARY_PATH to be set?On Wed, Dec 2, 2015 at 10:21 PM, Luis Garcia Alanis <luis@garcia.tv> wrote:Hello,I am using ubuntu 15.10, I am setting GNUstep.sh to be sourced on /etc/profile.d/gnustep.shWhen I open a terminal on X and try to gopen I get an error:
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep
[Prev in Thread] | Current Thread | [Next in Thread] |