Sunday, 29 December 2013

What is SElinux and How it works

Hello friends I am Deepak Saini and today i am trying to explain the  SElinux in the Red Hat Linux

SElinux :- It contains boolean context for services of linux.It enhanced security feature of linux by modifying  predefine context for various services.

It works in three modes 
1 Enforceing
2 Permissive
3 Disabled

1 Enforcing  :-  Defaults mod in the linux which works. All booleans context are applied in this mod run system in this mod for securing.

2 Permissive :-  Get warring but selinux booleans are not applied.Used for trouble shooting purpose special in single user.Never set as permanent mode

3 Disabled :- Selinux will be disabled so no boolean context will be applied So doe security reasons never chose this mode.

How to set Temporary those modes

1 We are check which mode is set
syntax:- getenforce


2 Now we are  going for set the mode .How we are set enforcing mode
syntax :- setenforce 1 

3 How we are set the permissive mode
syntax:- setenforce 0 


How to set permanently those modes

We are change in a file for set modes file is /etc/sysconfig/selinux 
Syntax:- vim /etc/sysconfig/selinux


we are change the mode and save and quiet :P

Our mode is change permanently  

Thanks For reading and sorry for my RIP english :)
_/\_ Jai HIND

0 comments:

Post a Comment