From: Derek Atkins Date: Fri, 25 Aug 2006 06:22:02 +0000 (+0000) Subject: DEVEL15-keyring-test-harder-20060825 X-Git-Tag: openafs-devel-1_5_8~38 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dc2dc4287a33e614b89536fac0ead73f7cdadff5;p=packages%2Fo%2Fopenafs.git DEVEL15-keyring-test-harder-20060825 FIXES 38470 don't enable keyring pags in older keyring kernels (cherry picked from commit 4076e99d91e3644f4544386a38c908e5b793b285) --- diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 34dceed18..9c2e0dfb8 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -621,6 +621,9 @@ static inline _syscall2(long, keyctl, int, option, void*, arg2);], [#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],