From owner-freebsd-threads@FreeBSD.ORG Sat Sep 17 18:51:49 2011 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 710F0106564A for ; Sat, 17 Sep 2011 18:51:49 +0000 (UTC) (envelope-from gonzalo.a.r@gmail.com) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by mx1.freebsd.org (Postfix) with ESMTP id 036138FC17 for ; Sat, 17 Sep 2011 18:51:48 +0000 (UTC) Received: by wyf23 with SMTP id 23so4998515wyf.37 for ; Sat, 17 Sep 2011 11:51:48 -0700 (PDT) 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=5Brtdj4tDXPrhk3sKr7TAoqfB0f95bpWCg3lHFTDzuk=; b=wTWKGPJ6X+SJ9QzRxLBcVlxovdMPpTxZKdYoHE/dO96+eTXNC8PTn4bUKi5AuVhLm3 Vvyn8Buz76IV3ZE2bsJXWUTnr29NeNC9uipdvkl0m9dwvXJQOXgDa6wKPHuNsq3MMmeJ r3RQWnwVpxEd2YcAYmj6W9EvnEqw1oDnftE74= MIME-Version: 1.0 Received: by 10.216.182.197 with SMTP id o47mr777554wem.78.1316285507933; Sat, 17 Sep 2011 11:51:47 -0700 (PDT) Received: by 10.216.208.23 with HTTP; Sat, 17 Sep 2011 11:51:47 -0700 (PDT) In-Reply-To: <201109171520.09423.tijl@coosemans.org> References: <201109171520.09423.tijl@coosemans.org> Date: Sat, 17 Sep 2011 15:51:47 -0300 Message-ID: From: Gonzalo To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-threads@freebsd.org Subject: Re: thread impersonation X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2011 18:51:49 -0000 So, as a imagined, is not possible a thread impersonation on FreeBSD? 2011/9/17 Tijl Coosemans > On Monday 12 September 2011 21:31:03 Gonzalo wrote: > > I'm new in freeBSD and I'm looking a way to impersonate threads in > FreeBSD. > > In Linux I did that with setfsuid, but that only work in linux and is not > > portable :( > > There's seteuid(2) or setuid(2) which are portable. They change the uid of > the entire process though, not per thread. > > > I saw that in FreeBSD there is Jails, that could work? Is possible to > create > > a Jail for every new thread and "impersonate the Jail"? Maybe I'm saying > > things without sense :( > > A jail is a form of virtualisation. It's not related to what you're trying > to do. You can read more about jails in the handbook: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-intro.html >