LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Removing SELinux from CentOS (https://www.linuxquestions.org/questions/linux-newbie-8/removing-selinux-from-centos-4175580484/)

jyotib 05-23-2016 08:27 AM

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.

Habitual 05-23-2016 08:33 AM

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 (Post 5549623)
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.

jpollard 05-23-2016 08:39 AM

Quote:

Originally Posted by jyotib (Post 5549623)
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.

jyotib 05-23-2016 09:55 AM

SELinux
 
Can you recommend me Linux Servers that don't use SELinux facilities?

jpollard 05-23-2016 01:38 PM

Quote:

Originally Posted by jyotib (Post 5549669)
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 :)


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