Daniel Crosta on 1 May 2006 16:58:04 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] how to get sudo to preserve LD_PRELOAD


TuskenTower wrote:
Dan,
 Can you do a diff of your environment variables?
   env | sort > my_env.txt
   sudo env | sort > root_env.txt
   diff my_env.txt root_env.txt

 Where are you modifying/setting the LD environment variables?  Last
time I remember playing with those, I edited the linker script to
secure a class project.

 Have you tried removing those lines from the sudoers file?

HTH
Amul

Turns out it (seems to be) that ld.so is removing the LD_PRELOAD environment variable for setuid root binaries (eg sudo, su), not sudo itself.


dsc
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug