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

Re: linking "setuid" binary with shared objects



On Tue, Aug 14, 2001 at 04:11:58PM +0530, gdmurali wrote:
> Hi
> 
> If the executable is a "setuid" binary , it does not link to *.so's specified
> in LD_LIBRARAY_PATH env variable (run ldd on setuid binary).Why?
> 	How to solve this? i,e i need to link "setuid" binary with some .so's(created by me)
> present in a particular directory

That's a security feature. The dynamic linker does not allow doing this.
I believe there is a way around by adding certain perms to the shared
.so's, but the real way is to add the path your are putting into
LD_LIBRARAY_PATH to /etc/ld.so.conf.

Ben

-- 
 .----------=======-=-======-=========-----------=====------------=-=-----.
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: