NAME

security_check_context - 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

selinux(8)

Recommended readings

Pages related to security_check_context you should read also:

Questions & Answers

Helpful answers and articles about security_check_context you may found on these sites:
Stack Overflow Server Fault Super User Unix & Linux Ask Ubuntu Network Engineering DevOps Raspberry Pi Webmasters Google Search