[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
loadable kernel modules?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: loadable kernel modules?
- From: Jack Culpepper <jack_(_at_)_newdream_(_dot_)_net>
- Date: Tue, 10 Oct 2000 23:51:59 -0700
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