| 1 |
.TH "selabel_partial_match" "3" "05 May 2015" "Security Enhanced Linux" "SELinux API documentation" |
| 2 |
|
| 3 |
.SH "NAME" |
| 4 |
selabel_partial_match \- determine whether a direct or partial match is |
| 5 |
possible on a file path \- Only supported on file backend. |
| 6 |
. |
| 7 |
.SH "SYNOPSIS" |
| 8 |
.B #include <stdbool.h> |
| 9 |
.br |
| 10 |
.B #include <selinux/selinux.h> |
| 11 |
.br |
| 12 |
.B #include <selinux/label.h> |
| 13 |
.sp |
| 14 |
.BI "bool selabel_partial_match(struct selabel_handle *" hnd , |
| 15 |
.in +\w'int selabel_partial_match('u |
| 16 |
.BI "const char *" key ");" |
| 17 |
.in |
| 18 |
. |
| 19 |
.SH "DESCRIPTION" |
| 20 |
.BR selabel_partial_match () |
| 21 |
performs a partial match operation on the handle |
| 22 |
.IR hnd , |
| 23 |
returning TRUE or FALSE. |
| 24 |
The \fIkey\fR parameter is a file path to check for a direct or partial match. |
| 25 |
.sp |
| 26 |
.SH "RETURN VALUE" |
| 27 |
TRUE is returned if a direct or partial match is found, FALSE if not. |
| 28 |
.sp |
| 29 |
.SH "SEE ALSO" |
| 30 |
.BR selabel_open (3), |
| 31 |
.BR selabel_stats (3), |
| 32 |
.BR selinux_set_callback (3), |
| 33 |
.BR selinux (8), |
| 34 |
.BR selabel_file (5) |