Re: Enabling built-in modules earlier in init

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Antti Kantee
Date: Wednesday, June 16, 2010 - 4:44 am

On Tue Jun 15 2010 at 17:10:55 -0700, Paul Goyette wrote:

Actually reading the first email in the thread also ...

I have to admit I haven't been following your work too closely, but
builtin modules are initialized either when all of them are initialized
per class or when their initialization is explicitly requested.  So if
whatever uses PCIVERBOSE requests the load of the PCIVERBOSE module,
it should be initialized and you should be fine (see module_do_load()).

The only "but" is that explicit loads must be accompanied by
MODCTL_LOAD_FORCE.  I wrote it that way because of the security use case:
if you disable a builtin module due to a security hole, you don't want
it to get autoloaded later.  For file system modules you can always use
rm, but for builtins you don't have that luxury.  So if that is actually
what you're chocking on, I suggest adding some flag to determine if the
module has ever been loaded and ignore the need for -F if it hasn't.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Enabling built-in modules earlier in init, Paul Goyette, (Tue Jun 15, 5:10 pm)
Re: Enabling built-in modules earlier in init, Antti Kantee, (Wed Jun 16, 4:44 am)
Re: Enabling built-in modules earlier in init, Paul Goyette, (Wed Jun 16, 4:58 am)
Re: Enabling built-in modules earlier in init, Antti Kantee, (Wed Jun 16, 5:10 am)
Re: Enabling built-in modules earlier in init, Paul Goyette, (Wed Jun 16, 6:31 am)
Re: Enabling built-in modules earlier in init, Antti Kantee, (Wed Jun 16, 6:46 am)
Re: Enabling built-in modules earlier in init, Paul Goyette, (Wed Jun 16, 3:36 pm)
Re: Enabling built-in modules earlier in init, Antti Kantee, (Thu Jun 17, 3:27 am)
Re: Enabling built-in modules earlier in init, Paul Goyette, (Thu Jun 17, 6:14 am)
Re: Enabling built-in modules earlier in init, Paul Goyette, (Fri Jun 18, 5:07 am)