[OpenAFS-devel] Re: [OpenAFS] 2.6 kernel support anytime soon? Workarounds?

chas williams (contractor) chas@cmf.nrl.navy.mil
Thu, 22 Apr 2004 18:24:27 -0400


for the curious, the sources in the openafs development cvs tree
should now have preliminary linux 2.6 kernel support.

you WILL need to recompile your 2.6 kernel after applying the
following patch (and before you run afs' configure as well).
hopefully the dependency on exporting sys_call_table[] will go
away in the near future.

i believe the setgroup hooking issues can be handled with the
new security mechanism in 2.6.  would i be a terrible burden
to require people to use CONFIG_SECURITY if they want pag support?

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1783  -> 1.1784 
#	arch/i386/kernel/i386_ksyms.c	1.59    -> 1.60   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/04/09	chas@relax.cmf.nrl.navy.mil	1.1784
# [AFS] export sys_call_table
# --------------------------------------------
#
diff -Nru a/arch/i386/kernel/i386_ksyms.c b/arch/i386/kernel/i386_ksyms.c
--- a/arch/i386/kernel/i386_ksyms.c	Sat Apr 10 19:20:22 2004
+++ b/arch/i386/kernel/i386_ksyms.c	Sat Apr 10 19:20:22 2004
@@ -206,3 +206,6 @@
 #endif
 
 EXPORT_SYMBOL(csum_partial);
+
+extern void *sys_call_table[];
+EXPORT_SYMBOL(sys_call_table);