ldd functionality from suid binary
Tue Jul 17 13:06:00 GMT 2012
Any idea? :)
Once again, the question is: is there any way to call ldd from an suid
2012-07-12 20:56 keltezĂŠssel, RenĂĄta HodovĂĄn Ărta:
> Hi there,
> I have a problem what I hope you can help in. I need a C++ function
> what is able to work out an ldd-like functionality (this should be a
> part of a bigger project). I already have a solution and you can find
> its simplified version under the following link:
> Unfortunately the binary, what will contain this code, has suid flag.
> And in this case my example exits with status 5 error message (without
> suid the code works fine).
> I investigated the code of ldd and found the following in rtld.c :
> process_dl_audit function:
> if (mode != normal)
> _exit (5);
> So it seems to me that ldd doesn't work for suid binaries. But I hope
> that I'm wrong.
> This is why I'd like to ask your help to find a solution/workaround!
> Thanks in advance,
> Renata Hodovan
More information about the Libc-help