From owner-freebsd-arch@FreeBSD.ORG Thu Dec 29 11:38:33 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB1B01065679; Thu, 29 Dec 2011 11:38:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 621E38FC08; Thu, 29 Dec 2011 11:38:32 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id pBTBcT12048584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Dec 2011 13:38:30 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id pBTBcTn5017055; Thu, 29 Dec 2011 13:38:29 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id pBTBcTbJ017054; Thu, 29 Dec 2011 13:38:29 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 29 Dec 2011 13:38:29 +0200 From: Kostik Belousov To: Xin LI Message-ID: <20111229113829.GF50300@deviant.kiev.zoral.com.ua> References: <20111229084308.GD50300@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="e6MacjH9Q9s0loUc" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: kan@freebsd.org, arch@freebsd.org, des@freebsd.org Subject: Re: fdlopen(3) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2011 11:38:34 -0000 --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 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--