RE: exported kernel symbols

Biondi, Philippe (Philippe.Biondi@matranortel.com)
Wed, 3 Nov 1999 16:18:00 +0100


> Biondi, Philippe]
> > Does that means that if you disable insmod syscall and if you insert
> > the following code in the kernel:
>
> > int my_one=1;
> > void erase_my_one() { my_one=0; }
> > EXPORT_SYMBOL(my_one);
> > EXPORT_SYMBOL(erase_my_one);
>
> > Nobody can set my_one to zero, even with the dirtiest hack the world
> > has ever seen ?
>
> Actually, no -- the dirtiest hack the world has ever seen would most
> likely involve something like mmap("/dev/kmem")....
>
Ah, yes, I forgot this detail !
Can I say, now that I disabled insmod syscall and kmem driver [1] that my (so loved !) variable cannot be set to zero ?

[1] btw, Will someone or something stop working because it uses /dev/kmem ? I don't see any one, but I don't know everything.

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