On Tue Feb 08 2011 at 23:22:44 +0200, Antti Kantee wrote: > On Tue Feb 08 2011 at 22:00:49 +0100, Joerg Sonnenberger wrote: > > On Tue, Feb 08, 2011 at 03:34:54PM -0500, Christos Zoulas wrote: > > > Still the problem remains, how do we stack the calls to insert the ssp > > > check at the top level, without resorting to rtld tricks? > > > > Let me try to summarize the situation to make sure I get it right: > > > > The fortification code wants to provide an inline function "read" that > > calls the real "read" after doing the argument checks. > > > > rumphijack wants to override the "read" symbol, apply some magic and > > call "_sys_read" for the real system call. > > No, it wants to override "whatever is the symbol applications are > resolved to". For -current this is "_sys_read" (on nb5 it's "read").
umph, for this case it's always _sys_read since read is just an alias for _sys_read on all branches. However, on -current application linkage "skips" read() (apparently due to the ssp magic). -- älä karot toivorikkauttas, kyl rätei ja lumpui piisaa