man security_check_context (Fonctions bibliothèques) - check the validity of a context
NAME
security_check_context - check the validity of a context
SYNOPSIS
#include <selinux/selinux.h> int security_check_context(security_context_t con);
DESCRIPTION
security_check_context returns 0 if SE Linux is running and the context is valid, otherwise it returns -1.