Re: Two fixes for 2.4.19-pre5-ac3

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 7 Apr 2002 18:42:05 +0100 (BST)


> And, unless this is reversed the OpenAFS kernel module won't load (it
> needs sys_call_table.):

Correct. There was agreement a very long time ago that code should not patch
the syscall table (for one its not safe). AFS probably needs fixing so the
AFS syscall hook is exported portably and nicely in the syscall code.

This wants fixing in 2.5 too - basically

static int (*afs_syscall)(...);
sys_afs_syscall(...)
{
if(afs_syscall)
return afs_syscall(....)
return -ENOSYS;
}

EXPORT_SYMBOL(afs_syscall)

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/