LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-08-2019, 07:09 AM   #1
-Snake-
Member
 
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Rep: Reputation: Disabled
Why I can not see "selinux" module with "lsmod" command?


Sorry for this newbie question, but Why I can not see "selinux" on the lsmod output? Im running centos 7

Thanks.
 
Old 06-08-2019, 08:54 PM   #2
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
Because SELinux is not supposed to be loaded as a kernel module. That's not how it works. It's loaded into your file system at /sys/fs/selinux.
 
1 members found this post helpful.
Old 06-08-2019, 09:32 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I can't test this right now, but I expect that you should be able to see it with the ps command.

https://www.tecmint.com/ps-command-e...ss-monitoring/
 
Old 06-09-2019, 02:50 AM   #4
-Snake-
Member
 
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RickDeckard View Post
Because SELinux is not supposed to be loaded as a kernel module. That's not how it works. It's loaded into your file system at /sys/fs/selinux.

Now I unserstand it, thanks you!
 
  


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
[SOLVED] insmod inserts the module. but lsmod does not list it. using Plx load module utility. cpemmaraju Linux - Kernel 2 05-14-2014 11:58 PM
NTFS module not listed in lsmod(8) output m4rtin Linux - Kernel 3 09-19-2012 06:08 AM
Implementing SeLinux on Debian 5 (Lenny) -- can't install "selinux-basics" bashFUL Linux - Security 3 10-17-2011 01:16 AM
Command "lsmod" Doesn't Work In Fedora rrrssssss Fedora 4 03-11-2007 09:24 AM
Why can't I use lsmod rmmod etc JohnSharp Linux - Newbie 4 04-08-2004 10:11 AM

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

All times are GMT -5. The time now is 11:55 AM.

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