selinux\_boolean\_sub(3) SELinux API documentation selinux\_boolean\_sub(3)

# [NAME](#NAME)

selinux\_boolean\_sub - Search the translated name for a boolean\_name record

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;selinux/selinux.h&gt;**

**char \*selinux\_boolean\_sub(const char \*boolean\_name);**

# [DESCRIPTION](#DESCRIPTION)

**selinux\_boolean\_sub**() searches the */etc/selinux/{POLICYTYPE}/booleans.subs\_dist* file for a matching boolean\_name record. If the record exists the boolean substitution name is returned. If not **selinux\_boolean\_sub**() returns the original *boolean\_name*.

# [RETURN VALUE](#RETURN_VALUE)

**selinux\_boolean\_sub**() returns the *boolean\_name* or the substituted name on success. The returned value must be freed with [**free**(3)](/man/os/libselinux/free.3). **selinux\_boolean\_sub**() returns NULL on error.

# [SEE ALSO](#SEE_ALSO)

[**security\_get\_boolean\_names**(3)](/man/os/libselinux/security_get_boolean_names.3)

11 June 2012 dwalsh@redhat.com

---

Document: selinux_boolean_sub(3) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
