linker_load_module(NULL, "modname", ...) from thread with no
user process
Gleb Smirnoff
glebius at freebsd.org
Mon Jul 19 02:37:44 PDT 2004
On Sun, Jul 18, 2004 at 09:51:09PM -0700, Julian Elischer wrote:
J> Probably the onl thing to do is to refuse to try an load the modules if
J> you are not running
J> in the context of a process..
What about adding this check to ng_make_node()? It works for me OK.
if (curthread->td_ithd != NULL)
return(EAGAIN);
Or even to linker_load_module()?
And possibly EAGAIN is not the best choice.
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
More information about the freebsd-hackers
mailing list