Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2011 08:41:17 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-threads@freebsd.org
Cc:        Robert Watson <rwatson@freebsd.org>, Tijl Coosemans <tijl@coosemans.org>
Subject:   Re: thread impersonation
Message-ID:  <201109190841.17780.jhb@freebsd.org>
In-Reply-To: <CA%2B02-EGJEq%2BP6SQ5T3uTe-kJ112dMazrWURFDzypWVWUAwzGPA@mail.gmail.com>
References:  <CA%2B02-EGUyKuCeRVoy36u2Ubnu7JJxvXtFzp3FzCFEGdNd-DGgQ@mail.gmail.com> <4E755D84.7080103@freebsd.org> <CA%2B02-EGJEq%2BP6SQ5T3uTe-kJ112dMazrWURFDzypWVWUAwzGPA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, September 19, 2011 7:50:04 am Gonzalo wrote:
> What i'm trying to achieve is a program like NFS. Users will connect to this
> program and navigate the virtual filesystem. Each connection is a thread,
> and I need to impersonate them for the user associated to each connection,
> if I use setuid, all thread in the process would be impersonated. In Linux I
> achieved that using "setfsid" but that doesn't exists here in FreeBSD

Yes, per-thread credentials don't exist yet.  You can try asking 
zml@FreeBSD.org as he was planning to work on that, but I don't know if he has 
a patch available.  rwatson@ is another good person to ask about this.

-- 
John Baldwin



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