View previous topic :: View next topic |
Author |
Message |
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Wed Nov 17, 2004 11:50 am Post subject: Kernel for a server, modules or builtin? |
|
|
On a server kernel, should most stuff be compiled as Module or into the kernel? Also what stuff should be built-in within the kernel in all cases and at all costs, thus, not as module. _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Nov 17, 2004 1:10 pm Post subject: |
|
|
you'll have to built in all stuff needed for boot such as root filesystem, IDE/SCSI disks, your ATA/SCSI controller,...
everything else could be compiled as modules.
but there are also some security-related issues... |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Nov 17, 2004 1:22 pm Post subject: |
|
|
and of course you can use initrd if you want to have your modules available during boot. |
|
Back to top |
|
|
mayday147 l33t
Joined: 22 Mar 2004 Posts: 825 Location: Bucharest, Romania
|
Posted: Wed Nov 17, 2004 1:50 pm Post subject: |
|
|
I would choose to have (almost) everything compiled as built-in, because modules can be a security risk , as jkt said. It's supposed that you aren't changing your hardware too often and you know exactly what you need for your system to have everything built-in the kernel. _________________ gentoo.ro |
|
Back to top |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Wed Nov 17, 2004 2:36 pm Post subject: |
|
|
Even when module loading support is disabled in the kernel config it is possible to manipulate system calls like LKM rootkits do.
But this is really hard work!
Putting all the needed things into the kernel and disable module loading support will stop script kiddies simply using others rootkits.
I agree to mayday147. A server normally doesn't change in hardware very often!
What else should trigger you to use modules? |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Nov 17, 2004 2:38 pm Post subject: |
|
|
mayday147 wrote: | I would choose to have (almost) everything compiled as built-in, because modules can be a security risk , as jkt said. |
security risk is possibility of hacker to load his mallicious modules into kernel, so you'll have to disable modules support in order to prevent this risk. But there are also some other means of getting into kernel space AFAIK, for example /dev/kmem etc...
modules offer you easier way to upgrade as you usually don't have to reboot, just `modprobe -r`, `modprobe`, but it is not always possible and sometimes also not desired. And production machines aren't upgraded to often, anyway. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20582
|
Posted: Wed Nov 17, 2004 3:12 pm Post subject: |
|
|
Moved from Other Things Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Wed Nov 17, 2004 9:18 pm Post subject: |
|
|
jkt wrote: | mayday147 wrote: | I would choose to have (almost) everything compiled as built-in, because modules can be a security risk , as jkt said. |
security risk is possibility of hacker to load his mallicious modules into kernel, so you'll have to disable modules support in order to prevent this risk. But there are also some other means of getting into kernel space AFAIK, for example /dev/kmem etc...
|
Well thanx a lot people. As for kmem.. grsecurity is taking care of it
_________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Thu Nov 18, 2004 5:07 pm Post subject: |
|
|
hecatomb wrote: |
What else should trigger you to use modules? |
bzImage has limited size and it's thus possible that all required stuff won't fit into some reasonable size. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|