linux_wiki:use_boolean_settings_to_modify_system_selinux_settings

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!


Show all current SELinux boolean values

getsebool -a


List SELinux boolean current values and default values

semanage boolean -l


Show httpd_enable_homedirs current setting

semanage boolean -l | grep httpd_enable_home

Temporary: Change boolean selinux value

setsebool httpd_enable_homedirs on


Persistent: Change boolean selinux value

setsebool -P httpd_enable_homedirs on
 
OR
 
semanage boolean -m --on httpd_enable_homedirs

  • linux_wiki/use_boolean_settings_to_modify_system_selinux_settings.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)