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],
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
[EMAIL PROTECTED] PGP key available