LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Issues with mounting a barebones Linux Security Module. (https://www.linuxquestions.org/questions/linux-kernel-70/issues-with-mounting-a-barebones-linux-security-module-4175731545/)

Nucl3arsn3k 12-05-2023 12:38 PM

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.

zeebra 12-11-2023 03:10 AM

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.

slac-in-the-box 12-11-2023 03:52 AM

Did you try modprobe?

Nucl3arsn3k 12-15-2023 03:46 PM

How would I use modprobe in this context?

slac-in-the-box 12-17-2023 04:19 AM

Quote:

Originally Posted by Nucl3arsn3k (Post 6470664)
How would I use modprobe in this context?

Code:

man modprobe


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