fdlopen(3)

Kostik Belousov kostikbel at gmail.com
Thu Dec 29 11:38:34 UTC 2011


On Thu, Dec 29, 2011 at 03:15:09AM -0800, Xin LI wrote:
> Hi,
> 
> On Thu, Dec 29, 2011 at 12:43 AM, Kostik Belousov <kostikbel at gmail.com> wrote:
> > Hello,
> > below is the patch to add fdlopen(3) function to rtld. It allows to load
> > shared object referenced by the opened file descriptor. Intent is to allow
> > the caller to do some additional checks on the object before committing
> > to load it, in race-free manner.
> >
> > The facility was requested by des@, who also tested the patch.
> >
> > I will commit this shortly unless somebody objects.
> 
> Will this prevent e.g. writes to the .so file after open, but before fdlopen()?

How can it ? Even in theory ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20111229/070b97d4/attachment.pgp


More information about the freebsd-arch mailing list