NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | COLOPHON

selinux_boolean_sub(3)    SELinux API documentation   selinux_boolean_sub(3)

NAME         top

       selinux_boolean_sub -

SYNOPSIS         top

       #include <selinux/selinux.h>
       char *selinux_boolean_sub(const char *boolean_name);

DESCRIPTION         top

       selinux_boolean_sub() searches the
       /etc/selinux/{POLICYTYPE}/booleans.subs_dist file for a maching
       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         top

       selinux_boolean_sub() returns the boolean_name or the substituted
       name on success.  The returned value must be freed with free(3).
       selinux_boolean_sub() returns NULL on error.

SEE ALSO         top

       security_get_boolean_names(3)

COLOPHON         top

       This page is part of the selinux (Security-Enhanced Linux user-space
       libraries and tools) project.  Information about the project can be
       found at ⟨https://github.com/SELinuxProject/selinux/wiki⟩.  If you
       have a bug report for this manual page, see 
       ⟨https://github.com/SELinuxProject/selinux/wiki/Contributing⟩.  This
       page was obtained from the project's upstream Git repository 
       ⟨https://github.com/SELinuxProject/selinux⟩ on 2017-07-05.  If you
       discover any rendering problems in this HTML version of the page, or
       you believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a mail
       to man-pages@man7.org
dwalsh@redhat.com               11 June 2012          selinux_boolean_sub(3)