selinux_boolean_sub(3) — Linux manual page


selinux_boolean_sub(3)    SELinux API documentation   selinux_boolean_sub(3)

NAME         top

       selinux_boolean_sub  -  Search the translated name for a boolean_name

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 matching
       boolean_name record.  If the record exists the boolean substitution
       name is returned.  If not selinux_boolean_sub() returns the original

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


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 ⟨⟩.  If you
       have a bug report for this manual page, see
       ⟨⟩.  This
       page was obtained from the project's upstream Git repository
       ⟨⟩ on 2020-11-01.  (At that
       time, the date of the most recent commit that was found in the repos‐
       itory was 2020-10-31.)  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 im‐
       provements to the information in this COLOPHON (which is not part of
       the original manual page), send a mail to               11 June 2012          selinux_boolean_sub(3)