Changing back to per-thread credentials on Linux (fixing native AIO).

Jeremy Allison jra at samba.org
Sun Jul 1 17:15:36 MDT 2012


On Sun, Jul 01, 2012 at 03:34:09PM -0700, Jeremy Allison wrote:
> On Sun, Jul 01, 2012 at 08:38:13PM +0200, Volker Lendecke wrote:
> > 
> > Sorry, I just don't trust the glibc folks on this. They used
> > to have a syscall() function that returned -errno. This
> > would have made syscalls portably useable in an environment
> > using clone() without thread local storage (per-thread
> > errno). They deliberately removed this facility, completely
> > crippling clone(). If they feel like it, they will start
> > intercepting syscall() for the setuid-like values. We would
> > not even notice before it is too late. Before this aspect is
> > not officially blessed by the glibc maintainers, I would
> > rather limit this to a very well-audited set of precise
> > glibc versions.
> > 
> > Can you get this official blessing in some way?
> 
> Sure, we can ask the glibc maintainers for their
> opinions on this, that is a good idea !

FYI. I'm joining the libc-help list here:

http://www.gnu.org/software/libc/development.html

to ask just this question. I'll keep you posted
as I get responses.

Cheers,

	Jeremy.


More information about the samba-technical mailing list