[OpenAFS-devel] Re: [grand.central.org #38470] 1.4.2rc1 fails on RHEL4 2.6.9 kernel: missing keyring defines?

Derek Atkins warlord@MIT.EDU
Thu, 24 Aug 2006 11:00:05 -0400


--=-=-=

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


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=openafs-1.4.2rc1-keyring.patch
Content-Description: proposed keyring patch

--- 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
       warlord@MIT.EDU                        PGP key available

--=-=-=--