LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2016, 08:27 AM   #1
jyotib
LQ Newbie
 
Registered: Jan 2012
Location: Kolkata, India
Distribution: RHEL 5/6,Slackware, windows 7, pclinuxos
Posts: 18

Rep: Reputation: Disabled
Removing SELinux from CentOS


Is it possible to remove SELinux completely along with all of its kernel modules from Linux Servers such as, Centos? If it is possible, would you be kind enough to share the information how to do it? Although i am not going to answer why i need to remove it where i can easily disable it. I just don't want to disable it, i rather want it completely out of my system.
 
Old 05-23-2016, 08:33 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,826
Blog Entries: 11

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111
Hard to tell. "such as CentOS" is like saying "I have a toaster".

Is it possible to get some more information about the CentOS release?
Is it up to date?

Resources:
https://wiki.centos.org/HowTos/SELinux
https://duckduckgo.com/?q=Removing+S...+CentOS&ia=web

Notice: I actually googled (searched) your thread topic.
No sense re-inventing the wheel, hey?

wrt:
Quote:
Originally Posted by jyotib View Post
Although i am not going to answer why i need to remove it where i can easily disable it.
When asking for help, you should start with what you are willing to do.

SELinux is easily disabled (I don't recommend it) but perhaps not so easily removed.

Consider a please and thank you also.
You've been here long enough.

Last edited by Habitual; 05-23-2016 at 08:38 AM.
 
Old 05-23-2016, 08:39 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Quote:
Originally Posted by jyotib View Post
Is it possible to remove SELinux completely along with all of its kernel modules from Linux Servers such as, Centos? If it is possible, would you be kind enough to share the information how to do it? Although i am not going to answer why i need to remove it where i can easily disable it. I just don't want to disable it, i rather want it completely out of my system.
Yes, and no.

You can build your own kernel and eliminate any modules...

You can remove the SELinux tools using RPM...

You can rebuild the RPM spec files and remove the installation requirements that use those facilities...

You can even replace Anaconda that establishes the base security...

But you will now be responsible for your own fork of the CentOS project, as it will not be compatible with any of the updates.

SELinux is there to provide enhanced security.

If you don't want security, don't use CentOS, RH, Fedora, or any other distribution that makes use of the same kernel facilities that are used by SELinux.

Last edited by jpollard; 05-23-2016 at 08:43 AM.
 
Old 05-23-2016, 09:55 AM   #4
jyotib
LQ Newbie
 
Registered: Jan 2012
Location: Kolkata, India
Distribution: RHEL 5/6,Slackware, windows 7, pclinuxos
Posts: 18

Original Poster
Rep: Reputation: Disabled
SELinux

Can you recommend me Linux Servers that don't use SELinux facilities?
 
Old 05-23-2016, 01:38 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Quote:
Originally Posted by jyotib View Post
Can you recommend me Linux Servers that don't use SELinux facilities?
Slackware is about the last one that doesn't.

Not a large following, but because it is closest to the UNIX roots (other than BSD), some people prefer it.

Not too many businesses though (no cloud services, or instances in the cloud that I know of) - they want the added security.

On the plus side, no Gnome 3 either
 
2 members found this post helpful.
  


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] Where is the equivalent of /selinux/enforce on CentOS 7? abefroman Linux - Security 5 03-22-2015 02:22 PM
SELinux configuration help on CentOS 6.5 cquick197 Red Hat 2 02-27-2014 08:38 AM
CentOS 6 GRSecurity + SELinux security issue melco Linux - Security 21 09-30-2011 03:19 AM
OpenSSH w/ Selinux compile error on CentOS 4.8 AlucardZero Linux - Software 2 03-16-2010 07:51 PM
SELinux & vBulletin (CentOS 5.2) sxa Linux - Security 1 02-04-2009 09:58 PM


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