Date: Thu, 29 Dec 2011 03:15:09 -0800 From: Xin LI <delphij@gmail.com> To: Kostik Belousov <kostikbel@gmail.com> Cc: kan@freebsd.org, arch@freebsd.org, des@freebsd.org Subject: Re: fdlopen(3) Message-ID: <CAGMYy3u6v-Ypo_wJEqWWGgGUjoTr=Ctx6tn6VV4fWM4nTYonrQ@mail.gmail.com> In-Reply-To: <20111229084308.GD50300@deviant.kiev.zoral.com.ua> References: <20111229084308.GD50300@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Thu, Dec 29, 2011 at 12:43 AM, Kostik Belousov <kostikbel@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()? Cheers, -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGMYy3u6v-Ypo_wJEqWWGgGUjoTr=Ctx6tn6VV4fWM4nTYonrQ>