Search This Blog

Sunday, July 31, 2011

Use boolean settings to modify system SELinux settings

To find boolean selinux of a service
# getsebool -a | grep servicename
eg:
# getsebool -a | grep http

Change boolean
#setsebool -P [boolean = ]
eg:
# setsebool -P httpd_enable_homedirs=1

1 comment:

Anonymous said...

1(on), 0(off)

#setsebool -P httpd_enable_homedirs=1
or
#setsebool -P httpd_enable_homedirs 1

or

#setsebool -P httpd_enable_homedirs=0
or
#setsebool -P httpd_enable_homedirs 0

or

#setsebool -P httpd_enable_homedirs=on
or
#setsebool -P httpd_enable_homedirs on

or

#setsebool -P httpd_enable_homedirs=off
or
#setsebool -P httpd_enable_homedirs off



~ Varjang Zala (India)