semanage-boolean(8) semanage-boolean(8)

# [NAME](#NAME)

semanage-boolean - SELinux Policy Management boolean tool

# [SYNOPSIS](#SYNOPSIS)

**semanage boolean \[-h] \[-n] \[-N] \[-S STORE] \[ --extract | --deleteall | --list \[-C] | --modify ( --on | --off ) boolean ]**

# [DESCRIPTION](#DESCRIPTION)

semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources. **semanage boolean** command controls the settings of booleans in SELinux policy. Booleans are if-then-else rules written in SELinux Policy. They can be used to customize the way that SELinux Policy rules effect a confined domain.

# [OPTIONS](#OPTIONS)

[*-h, --help*](#h,)

Show this help message and exit

[*-n, --noheading*](#n,)

Do not print heading when listing the specified object type

[*-N, --noreload*](#N,)

Do not reload policy after commit

[*-S STORE, --store STORE*](#S)

Select an alternate SELinux Policy Store to manage

[*-C, --locallist*](#C,)

List local customizations

[*-m, --modify*](#m,)

Modify a record of the specified object type

[*-l, --list*](#l,)

List records of the specified object type

[*-E, --extract*](#E,)

Extract customizable commands, for use within a transaction

[*-D, --deleteall*](#D,)

Remove all local customizations

*-1, --on*

Enable the boolean

*-0, --off*

Disable the boolean

# [EXAMPLE](#EXAMPLE)

```
Turn on the "apache can send mail" boolean (persistent version of #setsebool httpd_can_sendmail on)
# semanage boolean -m --on httpd_can_sendmail
List customized booleans
# semanage boolean -l -C
```

# [SEE ALSO](#SEE_ALSO)

[**selinux**(8)](/man/enterprise-packages/py3-sepolgen/selinux.8), [**semanage**(8)](/man/enterprise-packages/py3-sepolgen/semanage.8), [**setsebool**(8)](/man/enterprise-packages/py3-sepolgen/setsebool.8), [**getsebool**(8)](/man/enterprise-packages/py3-sepolgen/getsebool.8)

# [AUTHOR](#AUTHOR)

This man page was written by Daniel Walsh &lt;dwalsh@redhat.com&gt;

20130617

---

Document: semanage-boolean(8) from py3-sepolgen 3.11-r1 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
