LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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: Acworth, Georgia, USA
Distribution: Arch Hardened, Ubuntu 18.04, Fedora 30
Posts: 160

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: 15,440
Blog Entries: 25

Rep: Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration