Re: export of sys_call_table

Alexander Viro
2002-10-04T18:40:21Z

On 4 Oct 2002, Alan Cox wrote:

> On Fri, 2002-10-04 at 19:14, Andi Kleen wrote:
> > privateice also needs it. And there is no easy way to fix it like
> > oprofile, unless you moved it completely into the kernel.
> >
> > And AFS of course too for afssyscall.
> >
> > (both are free)
>
> AFS patches a collection of random syscalls in pretty icky ways. Again
> afssyscall wants doing the right way - with a kernel stub like NFS has

Note that even that is not needed - nfsservctl() can be easily removed;
essentially it's a userland code. mkdir /dev/nfsctl, have nfsd mounted
on it and nfsservctl() is
open /dev/nfsctl/blah
write request
possibly read reply
close
Kernel code does exactly that, the only difference is that it creates
a temporary vfsmount not attached anywhere. End of story. Modular
case is handled automatically - if nfsd is not loaded, mounting (either
explicit or do_kern_mount() called in kernel version) will happily
load the module - as with any other filesystem type.