security_check_context3
Check the validity of a selinux context
Usage
#include <selinux/selinux.h>
int security_check_context(const char *con);
int security_check_context_raw(const char *con);
Overview
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.
Releases
11 releases since Debian 3.1 (Sarge); the text changed 4 times.