setsebool Command Examples

Set SELinux boolean value. See also: semanage-boolean, getsebool. More information: https://manned.org/setsebool.

getsebool -a

sudo setsebool {{httpd_can_network_connect}} {{1|true|on|0|false|off}}

sudo setsebool -P {{container_use_devices}} {{1|true|on|0|false|off}}

sudo setsebool -P {{ftpd_use_fusefs=1 mount_anyfile=0 ...}}

sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}