[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Freestandards-ldps] Re: LDPS 0.91 - even closer to release



Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

> > POSIX threads requires that file locks be per process, and not
> > per-thread.  The fact that we treat threads === process causes problems,
> > no?
> 
> I was under the impression that was handled correctly by the lib and kernel
> code together. The kernel certainly handles some of the stupid stuff but
> not the thread/pid one. Adding the thread/pid check probably is doable if
> someone really really needed it as we have a mechanism for figuring out
> if something is probably the same thread group, at least for security domain

IMHO the biggest problem are the per thread credentials, because that
has the potential to open security holes for ported programs (it undoubtedly
already has)

CLONE_CRED would probably not be that hard, just changing LinuxThreads to 
it may break Linux programs that already depend on that behavior.



-Andi



Reply to: