Re: [PATCH 1/3] Keys: Pass session keyring to call_usermodehelper()

Kyle Moffett
2005-03-24T00:58:17Z

On Mar 23, 2005, at 17:34, Andrew Morton wrote:
> Well one question is "does it make sense to make a keyring session a
> part
> of the call_usermodehelper() API?". As it appears that only one caller
> will ever want to do that then I'd say no, and that it should be some
> specialised thing private to the key code and the call_usermodehelper()
> implementation.
>
> So unless you think that a significant number of callers will appear
> who
> are actually using the new capability then it would be better to keep
> the
> existing call_usermodehelper() API.

I'm fairly sure that OpenAFS or other AFS clients will need to make use
of
this when they move to the kernel keyring system. I had a discussion
with
Jeffrey Hutzelman on this topic a couple days ago on OpenAFS-Devel. The
OpenAFS cache manager would want to call into userspace to convert
between
Kerberos and AFS tickets/tokens.

Cheers,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a18 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP+++ t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r
!y?(-)
------END GEEK CODE BLOCK------