From owner-freebsd-arch@FreeBSD.ORG Thu May 28 04:33:09 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78051106564A; Thu, 28 May 2009 04:33:09 +0000 (UTC) (envelope-from kmsujit@gmail.com) Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.216.174]) by mx1.freebsd.org (Postfix) with ESMTP id 45E5D8FC08; Thu, 28 May 2009 04:33:09 +0000 (UTC) (envelope-from kmsujit@gmail.com) Received: by pxi4 with SMTP id 4so4339174pxi.3 for ; Wed, 27 May 2009 21:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=N6A9UlmkMBQWrV/ix+l7y/afjkNm39C/6AUMBsoFD0M=; b=PAQbQqFZg7QfPrb9nUz/iQluxvZfEUV1rfeqjHerveUNLCWVmKIMTO0siolhEyTep5 wTRVlvZzOkEkV5ANcc5Xyjaw7GhNzso8jG0/s1S0g1TQnHoXaEpF2xF2VxuFQkgsFvpa zmVQnk0HAm14C9aORT4TD52f0nrMON00GQsgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=O5cilG8bO2OEO2W7dhk+Dcf843ecTX2wbwoijE9LblGRfWeejwE0o9+D4b6ivahBA9 MYrTPqm7mzDYfeFGl2Gx0tHsEpNP3CMNYXnig+X0cMldRCzpzuod44+o3k/Qp2QXo72E K4/I0+o3v7M49VC8Mqn8+Vi4jc6FzYceMtEH0= MIME-Version: 1.0 Received: by 10.110.53.19 with SMTP id b19mr23387tia.34.1243485188115; Wed, 27 May 2009 21:33:08 -0700 (PDT) In-Reply-To: <20090528041236.GA14687@isilon.com> References: <20090528000147.GB3704@isilon.com> <74fe56020905271931l4c8d4677h3bbcce6d8c8a8605@mail.gmail.com> <20090528024640.GC9388@isilon.com> <74fe56020905272039h6aed0724u38dbc25d0a1be6a7@mail.gmail.com> <20090528041236.GA14687@isilon.com> Date: Thu, 28 May 2009 10:03:08 +0530 Message-ID: <74fe56020905272133r3f2ab491t962c6d0fe900e9d0@mail.gmail.com> From: Sujit K M To: Zachary Loafman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: steven.danneman@isilon.com, freebsd-arch@freebsd.org Subject: Re: pthread_setugid_np 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, 28 May 2009 04:33:09 -0000 The Source code licensing show two license information. One the Apple license and Other the BSD License. The BSD License is to the Mach code that is present in the source code, presumably I assume. And this includes the pthread_setugid_np, but with some amount of rework with the apple OS X implementation. Are you sure that this feature was never present in any of the BSD. Or has it been moved out due to some performance requirement. As far I see if present in OS X, It is an high performance piece of code. But it need to be checked whether the code was present in earlier version of BSD. Which might make it easier for you to have it in your internal version. On Thu, May 28, 2009 at 9:42 AM, Zachary Loafman wrote: > On Thu, May 28, 2009 at 09:09:28AM +0530, Sujit K M wrote: >> These are posix unix standards that you are going to be implementing. >> So if you are talking of only taking the interfaces, why is there any need >> to have objections. > > pthread_setugid_np is a non-portable pthread extension for per-thread > user/group impersonation on OS X. The _np on the function name is to > indicate its lack of portability to other OSes - it is not part of any > standard. There is no posix standard way to impersonate a user/group on > a per-thread basis - and, in fact, the OS X pthread_setugid_np interface > is the only one I know of in common use. > > I'm proposing introducing the same API and semantics to FreeBSD, thereby > vaguely pushing it further towards a standard. I don't really claim it's > the most elegant interface, though. > > -- > Zach Loafman | Staff Engineer | Isilon Systems > >