This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Error checking for SETXID (bug 13347)


On Mon, 24 Mar 2014, Florian Weimer wrote:

> Check for syscall error in the SETXID implementation in NPTL (bug 13347).
> 
> At this point, we can only abort the process because we have already switched
> credentials on other threads.  Returning an error would still leave the
> process in an inconsistent state.

This may be the best possible in the absence of a kernel interface for 
setting ids atomically for the whole process, but such an interface would 
be the desired long-term fix, with aborting from the present code just a 
fallback - is there ongoing work to agree such an interface?

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]