Re: PROBLEM: setgroups(2) does not update all threads in a process

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Américo Wang
Date: Monday, October 4, 2010 - 3:09 am

On Fri, Oct 01, 2010 at 11:11:31PM -0400, Mark Heily wrote:

I got the following from credentials(7):

       The POSIX threads specification requires that credentials are shared by all of
       the threads in a process.  However, at the kernel level, Linux maintains
       separate user and group credentials for each thread.  The NPTL threading
       implementation does some work to ensure that any change to user or group
       credentials (e.g., calls to setuid(2), setresuid(2), etc.)  is carried through
       to all of the POSIX threads in a process.

Hope it helps.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: PROBLEM: setgroups(2) does not update all threads in a ..., Américo Wang, (Mon Oct 4, 3:09 am)