From owner-freebsd-threads@FreeBSD.ORG Sat Sep 17 13:30:44 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 AD743106564A for ; Sat, 17 Sep 2011 13:30:44 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay002.isp.belgacom.be (mailrelay002.isp.belgacom.be [195.238.6.175]) by mx1.freebsd.org (Postfix) with ESMTP id 39B158FC12 for ; Sat, 17 Sep 2011 13:30:43 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhkIALicdE5bscf3/2dsb2JhbABBmSaOOXiBUwEBBAFWIwULCxguOR4ih24CArULhngEhz+dOQ Received: from 247.199-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.199.247]) by relay.skynet.be with ESMTP; 17 Sep 2011 15:20:12 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.5/8.14.5) with ESMTP id p8HDKBct030044; Sat, 17 Sep 2011 15:20:11 +0200 (CEST) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: freebsd-threads@freebsd.org Date: Sat, 17 Sep 2011 15:20:00 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-BETA1; KDE/4.6.5; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1496188.AboS4Ho5kA"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201109171520.09423.tijl@coosemans.org> Cc: 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 13:30:44 -0000 --nextPart1496188.AboS4Ho5kA Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 --nextPart1496188.AboS4Ho5kA Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iF4EABEIAAYFAk50nokACgkQfoCS2CCgtit/2gD/XyZrUVyCSEhAX8B5JkwogS0M YCBbI3S3iWS3661NHpgA/jF6ALvpd8CPqriZmyHJfugLb/c1fL5SdNG3nBeAoMVh =Wb/8 -----END PGP SIGNATURE----- --nextPart1496188.AboS4Ho5kA--