dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

Rodolfo Aramayo raramayo at gmail.com
Fri May 17 11:20:34 PDT 2013


On Fri, May 17, 2013 at 12:44 PM, Lawrence Velázquez <larryv at macports.org>wrote:

> On May 17, 2013, at 1:26 PM, Rodolfo Aramayo <raramayo at gmail.com> wrote:
>
>
> > Oh YES I do, but I sent you the result of the command you suggested as I
> obtained it
> >
> > 4$ ls
> > total 116
> > drwxr-xr-x+ 24 admin staff   816 May 17 03:21 ./
> > drwxr-xr-x+  7 root  admin   238 May 17 02:10 ../
> > -rw-------   1 admin staff     3 May 14 12:02 .CFUserTextEncoding
> > -rw-r--r--   1 admin staff 15364 May 15 17:29 .DS_Store
> > drwx------   2 admin staff    68 May 17 02:03 .Trash/
> > -rw-r--r--   1 admin staff   982 Feb 24 15:50 .bash_aliases
> > -rw-------   1 admin staff  2429 May 17 12:13 .bash_history
> > -rw-r--r--   1 admin staff   587 Mar 31  2012 .bash_logout
> > -rw-r--r--   1 admin staff  1263 May 15 14:03 .bash_profile
> > -rw-r--r--   1 admin staff   895 Mar 31  2012 .bashrc
> > -rw-r--r--   1 admin staff 13883 May 17 03:21 .emacs
> > drwx------   9 admin staff   306 Feb 24 15:54 .emacs.d/
> > -rw-r--r--   1 admin staff 13898 Feb 24 16:09 .emacs~
> > drwx------   3 admin staff   102 May 15 22:00 .ssh/
>
> Do any of those bash dotfiles source anything else?
>
> vq
>
> Yes!
to a file in: /usr/local and when I run the commands there I found:
./bashrc:export LD_LIBRARY_PATH=/usr/local/bioinfosoft/genometools/lib

when I commented out that:
LD_LIBRARY_PATH=/usr/local/bioinfosoft/genometools/lib
the problem went away

So now I understand it. It is in fact a security check that prevents
sourcing and therefore activation of potentially malicious code
If the code:
export LD_LIBRARY_PATH=/usr/local/bioinfosoft/genometools/lib
is inside the .bashrc file, then there is no problem, but if it is present
in another file being sourced, then there is a warning because that code is
not being read
Is this correct?

Thanks

--R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130517/b2b183af/attachment.html>


More information about the macports-users mailing list