From owner-freebsd-arch@FreeBSD.ORG Thu Dec 29 11:41:32 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 E69051065678; Thu, 29 Dec 2011 11:41:32 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 936EA8FC1E; Thu, 29 Dec 2011 11:41:32 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so13975833obb.13 for ; Thu, 29 Dec 2011 03:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RaMXO6qu2S/7xD54q2FBYoQ9cXztBePMWc7WzLsW2Ss=; b=IfmBmE+1OZ26fMaxVho3vKsHpCmXN75zMk7c/X2m+/BX/Zif9yGgBljynoBS2C3o98 0uDZXozdGqhlx6tDX5P/7wiwd9zojqSz6LvHkXUSZTGB5qHkGhEq9UfnQa24OFKgSCK1 zPbzbJg424KqKcQ+z5GQ5igoG+Z95p8vK5Moc= MIME-Version: 1.0 Received: by 10.182.42.37 with SMTP id k5mr31046226obl.40.1325157309882; Thu, 29 Dec 2011 03:15:09 -0800 (PST) Received: by 10.182.67.163 with HTTP; Thu, 29 Dec 2011 03:15:09 -0800 (PST) In-Reply-To: <20111229084308.GD50300@deviant.kiev.zoral.com.ua> References: <20111229084308.GD50300@deviant.kiev.zoral.com.ua> Date: Thu, 29 Dec 2011 03:15:09 -0800 Message-ID: From: Xin LI To: Kostik Belousov Content-Type: text/plain; charset=UTF-8 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:41:33 -0000 Hi, On Thu, Dec 29, 2011 at 12:43 AM, Kostik Belousov 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 https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die