Differences
This shows you the differences between two versions of the page.
linux_wiki:use_boolean_settings_to_modify_system_selinux_settings [2016/03/05 17:20] billdozor |
linux_wiki:use_boolean_settings_to_modify_system_selinux_settings [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Use Boolean Settings To Modify System Selinux Settings ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Don't forget to check SELinux boolean values on the exam if something is allowing access! | ||
- | |||
- | ---- | ||
- | |||
- | ===== Viewing Boolean Values ===== | ||
- | |||
- | Show all current SELinux boolean values | ||
- | <code bash> | ||
- | getsebool -a | ||
- | </ | ||
- | |||
- | \\ | ||
- | List SELinux boolean current values and default values | ||
- | <code bash> | ||
- | semanage boolean -l | ||
- | </ | ||
- | |||
- | \\ | ||
- | Show httpd_enable_homedirs current setting | ||
- | <code bash> | ||
- | semanage boolean -l | grep httpd_enable_home | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Setting Boolean Values ===== | ||
- | |||
- | Temporary: Change boolean selinux value | ||
- | <code bash> | ||
- | setsebool httpd_enable_homedirs on | ||
- | </ | ||
- | |||
- | \\ | ||
- | Persistent: Change boolean selinux value | ||
- | <code bash> | ||
- | setsebool -P httpd_enable_homedirs on | ||
- | </ | ||
- | |||
- | ---- | ||