Differences
This shows you the differences between two versions of the page.
linux_wiki:set_enforcing_and_permissive_modes_for_selinux [2016/02/29 22:16] billdozor created |
linux_wiki:set_enforcing_and_permissive_modes_for_selinux [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Set Enforcing And Permissive Modes For Selinux ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | About this page/ | ||
- | |||
- | ---- | ||
- | |||
- | Modes | ||
- | * Enforcing => SELinux is enabled and will restrict. | ||
- | * Permissive => SELinux is enabled and will log only. (Will not actually restrict anything) | ||
- | * Disabled => SELinux is disabled and will not log or restrict. | ||
- | |||
- | \\ | ||
- | Get current SELinux mode | ||
- | <code bash> | ||
- | getenforce | ||
- | OR | ||
- | sestatus | ||
- | </ | ||
- | |||
- | Temporary: Set Permissive (Monitor and Report) | ||
- | <code bash> | ||
- | setenforce 0 | ||
- | </ | ||
- | |||
- | Temporary: Set SELinux to Enforce | ||
- | <code bash> | ||
- | setenforce 1 | ||
- | </ | ||
- | |||
- | Persistent: SELinux Config File | ||
- | <code bash> | ||
- | / | ||
- | |||
- | SELINUX=enforcing | ||
- | </ | ||
- | |||
- | ---- | ||