| 1 |
.TH "selinux_colors_path" "3" "08 April 2011" "SELinux API documentation" |
| 2 |
.SH "NAME" |
| 3 |
selinux_colors_path \- Return a path to the active SELinux policy color configuration file |
| 4 |
. |
| 5 |
.SH "SYNOPSIS" |
| 6 |
.B #include <selinux/selinux.h> |
| 7 |
.sp |
| 8 |
.B const char *selinux_colors_path(void); |
| 9 |
. |
| 10 |
.SH "DESCRIPTION" |
| 11 |
.BR selinux_colors_path () |
| 12 |
returns the path to the active policy color configuration file. |
| 13 |
.sp |
| 14 |
The path is built from the path returned by |
| 15 |
.BR selinux_policy_root "(3)" |
| 16 |
with |
| 17 |
.I /secolor.conf |
| 18 |
appended. |
| 19 |
.sp |
| 20 |
This optional configuration file whose format is shown in |
| 21 |
.BR \%secolor.conf (5), |
| 22 |
controls the colors to be associated with the |
| 23 |
.I raw |
| 24 |
context components of the |
| 25 |
.BR selinux_raw_context_to_color "(3)" |
| 26 |
function when information is to be displayed by an SELinux color-aware application. |
| 27 |
. |
| 28 |
.SH "RETURN VALUE" |
| 29 |
On success, the path to the active policy color configuration file is returned. If a path is not available NULL is returned. |
| 30 |
. |
| 31 |
.SH "ERRORS" |
| 32 |
None. |
| 33 |
. |
| 34 |
.SH "SEE ALSO" |
| 35 |
.ad l |
| 36 |
.nh |
| 37 |
.BR selinux "(8), " selinux_policy_root "(3), " selinux_config "(5), " selinux_raw_context_to_color "(3), " secolor.conf "(5)" |