Date: Thu, 29 Dec 2011 13:38:29 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Xin LI <delphij@gmail.com> Cc: kan@freebsd.org, arch@freebsd.org, des@freebsd.org Subject: Re: fdlopen(3) Message-ID: <20111229113829.GF50300@deviant.kiev.zoral.com.ua> In-Reply-To: <CAGMYy3u6v-Ypo_wJEqWWGgGUjoTr=Ctx6tn6VV4fWM4nTYonrQ@mail.gmail.com> References: <20111229084308.GD50300@deviant.kiev.zoral.com.ua> <CAGMYy3u6v-Ypo_wJEqWWGgGUjoTr=Ctx6tn6VV4fWM4nTYonrQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--e6MacjH9Q9s0loUc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 29, 2011 at 03:15:09AM -0800, Xin LI wrote: > Hi, >=20 > On Thu, Dec 29, 2011 at 12:43 AM, Kostik Belousov <kostikbel@gmail.com> w= rote: > > 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 al= low > > 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. >=20 > Will this prevent e.g. writes to the .so file after open, but before fdlo= pen()? How can it ? Even in theory ? --e6MacjH9Q9s0loUc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk78UTUACgkQC3+MBN1Mb4hM4gCgmsfNZYsBJfDhb/99S3E6lrZi SwwAn24CEu9AFTyhdNjkr0spYFrJ64L0 =WUjy -----END PGP SIGNATURE----- --e6MacjH9Q9s0loUc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111229113829.GF50300>