Re: setuid/pthread interaction broken? 'clone_with_uid()?'

bert hubert (ahu@ds9a.nl)
Thu, 14 Feb 2002 18:05:07 +0100


On Thu, Feb 14, 2002 at 04:21:52PM +0000, Dave McCracken wrote:

> The only workaround I can think of is, as you discovered, to do the
> setuid() call before you create any threads, and thus create underlying
> kernel tasks. Once the kernel tasks have been created each one has its own
> credentials and has to be changed separately.

I'm wondering what the right semantics are. POSIX is one thing, but having
the ability to have threads with different uids in one VM would have its
uses too.

Regards,

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/