| 1 |
.TH "security_check_context" "3" "1 January 2004" "[email protected]" "SELinux API documentation" |
| 2 |
.SH "NAME" |
| 3 |
security_check_context \- check the validity of a SELinux context |
| 4 |
. |
| 5 |
.SH "SYNOPSIS" |
| 6 |
.B #include <selinux/selinux.h> |
| 7 |
.sp |
| 8 |
.BI "int security_check_context(char *" con ); |
| 9 |
.sp |
| 10 |
.BI "int security_check_context_raw(char *" con ); |
| 11 |
. |
| 12 |
.SH "DESCRIPTION" |
| 13 |
.BR security_check_context () |
| 14 |
returns 0 if SELinux is running and the context is valid, otherwise it |
| 15 |
returns \-1. |
| 16 |
|
| 17 |
.BR security_check_context_raw () |
| 18 |
behaves identically to |
| 19 |
.BR \%security_check_context () |
| 20 |
but does not perform context translation. |
| 21 |
. |
| 22 |
.SH "SEE ALSO" |
| 23 |
.BR selinux "(8)" |