2008-08-19 19:30:36 +00:00
|
|
|
.TH "security_check_context" "3" "1 January 2004" "russell@coker.com.au" "SELinux API documentation"
|
|
|
|
.SH "NAME"
|
|
|
|
security_check_context \- check the validity of a SELinux context
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.B #include <selinux/selinux.h>
|
|
|
|
.sp
|
2014-02-19 14:16:17 +00:00
|
|
|
.BI "int security_check_context(char * "con );
|
2012-11-10 03:32:07 +00:00
|
|
|
.sp
|
2014-02-19 14:16:17 +00:00
|
|
|
.BI "int security_check_context_raw(char * "con );
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "DESCRIPTION"
|
2012-11-13 20:15:34 +00:00
|
|
|
.BR security_check_context ()
|
2008-08-19 19:30:36 +00:00
|
|
|
returns 0 if SELinux is running and the context is valid, otherwise it
|
2012-11-13 20:15:34 +00:00
|
|
|
returns \-1.
|
2012-11-10 03:32:07 +00:00
|
|
|
|
|
|
|
.BR security_check_context_raw ()
|
|
|
|
behaves identically to
|
|
|
|
.BR \%security_check_context ()
|
|
|
|
but does not perform context translation.
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR selinux "(8)"
|