Debian Codegraph @

libselinux/man/man3/selinux_boolean_sub.3

raw
1 .TH "selinux_boolean_sub" "3" "11 June 2012" "[email protected]" "SELinux API documentation"
2 .SH "NAME"
3 selinux_boolean_sub \- Search the translated name for a boolean_name record
4 .
5 .SH "SYNOPSIS"
6 .B #include <selinux/selinux.h>
7 .sp
8 .BI "char *selinux_boolean_sub(const char *" boolean_name ");"
9 .sp
10 .SH "DESCRIPTION"
11 .BR selinux_boolean_sub ()
12 searches the
13 .I \%/etc/selinux/{POLICYTYPE}/booleans.subs_dist
14 file
15 for a matching boolean_name record. If the record exists the boolean substitution name is returned. If not
16 .BR \%selinux_boolean_sub ()
17 returns the original
18 .IR \%boolean_name .
19
20 .SH "RETURN VALUE"
21 .BR selinux_boolean_sub ()
22 returns the
23 .I boolean_name
24 or the substituted name on success. The returned value must be freed with
25 .BR free "(3)."
26 .BR selinux_boolean_sub ()
27 returns NULL on error.
28 .SH "SEE ALSO"
29 .BR security_get_boolean_names (3)