Skip to contentSkip to conversation

SE Linux as module?

DISCUSSION Andrey Borzenkov 3 participants 3 messages Aug 11, 2003

lore
Share & tools
lore
#0 lore raw

config does not suggest building it as module. Is it not possible by design?

TIA

-andrey

#1 lore raw
Quoted 1 line · Andrey Borzenkov

config does not suggest building it as module. Is it not possible by design?

It wants to initialize itself as early as possible. If it's a module, then it can't get itself loaded until *after* userspace has already been started - at which point we have some unknown number of things already running that don't have any security context attached to them. Yes, you still need to load policy from userspace, but at least every process has been tagged with a "yes, we know about it". In addition, if you're loading from userspace, that's a whole additional set of attacks on it during the bot (for instance, keeping the insmod from running at all, inserting a trojaned module or policy, etc etc etc...)

#2 lore raw
In reply to Andrey Borzenkov
Quoted 1 line · * Andrey Borzenkov ([email protected]) wrote:

config does not suggest building it as module. Is it not possible by design?

That's correct. The SELinux module needs to take advantage of early initialization of all security labels, and thus must be compiled into the kernel statically.

thanks
-chris

Signature · 1 line
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net