From owner-freebsd-arch@FreeBSD.ORG Thu May 28 00:14:14 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 4ED661065670 for ; Thu, 28 May 2009 00:14:14 +0000 (UTC) (envelope-from zml@FreeBSD.org) Received: from seaxch10.isilon.com (seaxch10.isilon.com [74.85.160.26]) by mx1.freebsd.org (Postfix) with ESMTP id 326058FC14 for ; Thu, 28 May 2009 00:14:14 +0000 (UTC) (envelope-from zml@FreeBSD.org) Received: from famine.isilon.com ([10.54.190.95]) by seaxch10.isilon.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 27 May 2009 17:01:48 -0700 Received: from zloafman by famine.isilon.com with local (Exim 4.69) (envelope-from ) id 1M9T48-0001Wn-BQ; Wed, 27 May 2009 17:01:48 -0700 Date: Wed, 27 May 2009 17:01:48 -0700 From: Zachary Loafman To: freebsd-arch@freebsd.org Message-ID: <20090528000147.GB3704@isilon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-OriginalArrivalTime: 28 May 2009 00:01:48.0569 (UTC) FILETIME=[7F16D090:01C9DF27] Cc: steven.danneman@isilon.com Subject: 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 00:14:14 -0000 arch@ - Isilon has need of per-thread impersonation. We're looking at implementing something like the pthread_setugid_np mechanism found on OS X, loosely documented in the code: http://fxr.watson.org/fxr/source/bsd/kern/kern_prot.c?v=xnu-1228 (see settid and setgroups1) and some here: http://lists.apple.com/archives/perfoptimization-dev/2008/Jan/msg00043.html Does anyone have strong objections to Apple's APIs here? There's obviously no portable itnerface to handle it, and it seems a little saner to just adopt someone else's API/semantics rather than reinvent. -- Zach Loafman | Staff Engineer | Isilon Systems