security_check_context - Man Page
check the validity of a SELinux context
Synopsis
#include <selinux/selinux.h>
int security_check_context(const char *con);
int security_check_context_raw(const char *con);
Description
security_check_context() returns 0 if SELinux is running and the context is valid, otherwise it returns -1.
security_check_context_raw() behaves identically to security_check_context() but does not perform context translation.
See Also
Referenced By
selabel_open(3), set_matchpathcon_flags(3).
The man page security_check_context_raw(3) is an alias of security_check_context(3).
1 January 2004 russell@coker.com.au SELinux API documentation