[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loadable kernel modules?



How do I use loadable kernel modules?  I am running 2.8-beta...

kid# pwd
/usr/share/lkm/misc
kid# make
===> module
cc -O2   -D_KERNEL -I/sys  -c miscmod.c
cc -O2   -D_KERNEL -I/sys  -c misccall.c
ld -r -o combined.o miscmod.o misccall.o
===> test
cc -O2     -c testmisc.c
cc   -o testmisc testmisc.o 
testmisc.o: warning: gets() is very unsafe; consider using fgets()
kid# make load
===> module
modload -o miscmod -emiscmod combined.o
modload: not loading symbols: kernel does not support symbol table loading: Operation not permitted
modload: can't reserve memory: Operation not permitted
*** Error code 9

Stop in /usr/share/lkm/misc/module (line 56 of Makefile).
*** Error code 1

Stop in /usr/share/lkm/misc.
kid# 

I have compiled in the LKM option in my kernel.  What is the trick?  Do
they need to be loaded in secure mode (like in /etc/rc.securelevel for
instance)?

Jack




Visit your host, monkey.org