Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2011 15:20:00 +0200
From:      Tijl Coosemans <tijl@coosemans.org>
To:        freebsd-threads@freebsd.org
Subject:   Re: thread impersonation
Message-ID:  <201109171520.09423.tijl@coosemans.org>
In-Reply-To: <CA%2B02-EGUyKuCeRVoy36u2Ubnu7JJxvXtFzp3FzCFEGdNd-DGgQ@mail.gmail.com>
References:  <CA%2B02-EGUyKuCeRVoy36u2Ubnu7JJxvXtFzp3FzCFEGdNd-DGgQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109171520.09423.tijl>