LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-20-2021, 01:57 AM   #1
juddy
LQ Newbie
 
Registered: Jul 2021
Posts: 1

Rep: Reputation: Disabled
Question Linux security product with its own kernel module - yes or no?


Question for all Linux admins / Linux security guys out there –
Would you use a Linux security product that has it own kernel module?
Or do you consider products that use a kernel module as a big no – no?
Thoughts? Reasons?
 
Old 07-20-2021, 03:10 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Depends if it really is a module. Linux has a framework specifically to accommodate this - read the kernel doco here
 
Old 07-20-2021, 08:09 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Tell us more about the specific product that you are now considering ...

Certainly, some systems – such as "plesk" – do use custom kernel modules.
 
Old 07-20-2021, 09:49 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
If one had enough resources in this device then they probably ought to avoid LKM's.

"
Security
While loadable kernel modules are a convenient method of modifying the running kernel, this can be abused by attackers on a compromised system to prevent detection of their processes or files, allowing them to maintain control over the system. Many rootkits make use of LKMs in this way. Note that on most operating systems modules do not help privilege elevation in any way, as elevated privilege is required to load a LKM; they merely make it easier for the attacker to hide the break-in.[10]

Linux
Linux allows disabling module loading via sysctl option /proc/sys/kernel/modules_disabled.[11][12] An initramfs system may load specific modules needed for a machine at boot and then disable module loading. This makes the security very similar to a monolithic kernel. If an attacker can change the initramfs, they can change the kernel binary."
https://en.wikipedia.org/wiki/Loadab...ule#Advantages
 
Old 07-20-2021, 11:37 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Don't confuse LSM with LKM.
 
2 members found this post helpful.
Old 07-23-2021, 10:17 AM   #6
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 687
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I am fine with using modules and I tend to prefer that. But I usually stick with whatever security that comes with the distros I use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Chakra Linux: Its Own Beast, Its Own Beauty LXer Syndicated Linux News 0 08-18-2017 05:42 PM
LXer: Microsoft has created its own FreeBSD. Repeat. Microsoft has created its own FreeBSD LXer Syndicated Linux News 0 06-09-2016 11:42 AM
LXer: Microsoft has developed its own Linux. Repeat. Microsoft has developed its own Linux LXer Syndicated Linux News 0 09-18-2015 04:51 PM
3D acceleration YES YES YES glxgears results props666999 Slackware 44 07-29-2005 08:40 PM
Yes Yes Yes! I Got Sound! shazam75 LinuxQuestions.org Member Success Stories 2 10-14-2004 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration