Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2009 08:18:01 -0700
From:      Zachary Loafman <zml@FreeBSD.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        steven.danneman@isilon.com, freebsd-arch@freebsd.org
Subject:   Re: pthread_setugid_np
Message-ID:  <20090528151800.GA18467@isilon.com>
In-Reply-To: <200905280816.29617.jhb@freebsd.org>
References:  <20090528000147.GB3704@isilon.com> <200905280816.29617.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 28, 2009 at 08:16:29AM -0400, John Baldwin wrote:
> I suppose you would implement this by having a new flag in td_pflags to 
> indicate that the thread is using a private credential and use that to 
> disable the automatic updating of td_ucred on syscall return and then just 
> point td_ucred at the thread-specific credential?

That sounds about right, though is actually more detailed than I had
gotten in my cursory investigation.
 
> Hmm, the XXX in Darwin's source about P_SUGID is probably meaningful for us as 
> we still use that flag.  I would defer to Robert on how that should work 
> though.

Hm, given the intent of issetugid(2), it seems like P_SUGID should
instead become a count of tainted threads rather than a flag.

-- 
Zach Loafman | Staff Engineer | Isilon Systems



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