LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-05-2023, 12:38 PM   #1
Nucl3arsn3k
LQ Newbie
 
Registered: Nov 2023
Posts: 4

Rep: Reputation: 0
Issues with mounting a barebones Linux Security Module.


I'm working on mounting a custom security module in kernel version 6.5.6,and it's never mounted for some reason.
I've made the code for the basic outline of the security module I'm testing public on github.
https://github.com/Nucl3arSn3k/LSM-test
To build the module as part of the new kernel, I used
Code:
make menuconfig
,checked to see if the module was enabled and then used
Code:
make bzImage
to build the kernel with the custom module.
I then used
Code:
make modules
and
Code:
make modules_install
to set up the modules for the kernel, then used
Code:
make install
to successfully install kernel version 6.5.6. However, on reboot, the custom module I wrote does not show as being enabled. I'm unsure what's going on at this point.
 
Old 12-11-2023, 03:10 AM   #2
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
I see this question has been open for awhile, with no answers. I'll just say that I think this is not a good place to ask such a question, you'll probably have more luck asking in a place where people learn and engage in Kernel development, like mailing lists, IRC or something like that.

If they feel the question is worth answering, I'm sure they will offer good help and advice.

Other than that modules are loaded with modprobe if not built in.

Last edited by zeebra; 12-11-2023 at 03:13 AM.
 
Old 12-11-2023, 03:52 AM   #3
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Did you try modprobe?
 
Old 12-15-2023, 03:46 PM   #4
Nucl3arsn3k
LQ Newbie
 
Registered: Nov 2023
Posts: 4

Original Poster
Rep: Reputation: 0
How would I use modprobe in this context?
 
Old 12-17-2023, 04:19 AM   #5
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Quote:
Originally Posted by Nucl3arsn3k View Post
How would I use modprobe in this context?
Code:
man modprobe
 
  


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
Best small barebones linux distro Kirfew Linux - Distributions 6 11-08-2010 02:32 PM
LXer: Shuttle launches $199 KPC linux box, $99 barebones kit LXer Syndicated Linux News 0 01-10-2008 04:10 PM
Best Linux-friendly vendors or barebones systems? halrod Linux - Hardware 2 03-29-2007 05:49 PM
shopping for barebones laptop for linux arnicainthemembrane Linux - Laptop and Netbook 3 02-28-2006 07:05 PM
shopping for barebones laptop for linux arnicainthemembrane Linux - Hardware 1 02-26-2006 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:14 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