This is the patch that I would prefer. Keyrings either work the way we want them to or not at all.
Jeffrey Altman Derek Atkins wrote: > Hi, > > This is the patch I would propose. This patch turns off linux keyring > support if the system does not define KEY_POS_VIEW and KEY_POS_SEARCH. > I've tested this patch and it does allow the kernel module to build > against 2.6.9-22 (by turning off keyring support). > > -derek > > > > ------------------------------------------------------------------------ > > --- src/cf/linux-test4.m4~ 2006-08-14 18:04:41.000000000 -0400 > +++ src/cf/linux-test4.m4 2006-08-24 04:41:29.400150624 -0400 > @@ -621,6 +621,9 @@ > [#ifdef CONFIG_KEYS > keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL); > request_key(NULL, NULL, NULL); > +#if !defined(KEY_POS_VIEW) || !defined(KEY_POS_SEARCH) > +#error "Your linux/key.h does not contain KEY_POS_VIEW or KEY_POS_SEARCH" > +#endif > #else > #error rebuild your kernel with CONFIG_KEYS > #endif], > > > ------------------------------------------------------------------------ > >
smime.p7s
Description: S/MIME Cryptographic Signature
