[OpenAFS-devel] Re: PAGs/tokens/threads
Chas Williams (CONTRACTOR)
chas@cmf.nrl.navy.mil
Fri, 07 Aug 2009 11:46:40 -0400
In message <20090807101752.b26fb6e7.adeason@sinenomine.net>,Andrew Deason write
s:
>On Fri, 07 Aug 2009 10:47:45 -0400
>"Chas Williams (CONTRACTOR)" <chas@cmf.nrl.navy.mil> wrote:
>
>> i was thinking that it should be something like set_ag(.., CONTEXT,
>> ...) where context is thread, session (process) or whatever. some
>> operating systems will not (or currently do not) support thread
>> context, so you would fall back to the next highest context, like
>> process or session.
>
>Er, fall back in the application or in the kernel? I would have thought
>you'd give ENOSYS or something when you don't support it, so an
>application doesn't accidentally stomp over the creds of other threads.
true. however, any context you set in another thread initially would
haved failed or would simply be setting the process context anyway.