selinux_boolean_sub(3)

selinux_boolean_sub3

Search the translated name for a boolean_name record

Usage

#include <selinux/selinux.h>

char *selinux_boolean_sub(const char *boolean_name);

Overview

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

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8–10
  2. 11–13

From libselinux1-dev 3.8.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.