[OpenAFS] PAGs in Ubuntu Karmic

Marc Dionne marc.c.dionne@gmail.com
Thu, 5 Nov 2009 15:13:41 -0500


On Thu, Nov 5, 2009 at 2:55 PM, Frank Burkhardt <fbo2@gmx.net> wrote:
> $ aklog -setpag
> Tokens held by the Cache Manager:
>
> User's (AFS ID 1097) tokens for afs@alpha [Expires Nov =A06 22:36]
> =A0 --End of list--
> $ exit
> $ tokens
> Tokens held by the Cache Manager:
>
> User's (AFS ID 1097) tokens for afs@alpha [Expires Nov =A06 22:36]
> =A0 --End of list--
>
>
> I expected to be in a different PAG when the second "tokens" is executed.
> But I'm not. When the subshell is left, I end up with the token of the
> subshell.

Ah, "aklog -setpag" has been unable to set the PAG in the calling
process on recent linux kernels, because the child process can't
change the credentials of its parent process.

In the current development branch there is new code to make this work
with kernel 2.6.32 and above - not sure if this will get ported back
to 1.4.

Marc