security_check_context

Section: SELinux API documentation (3)
Updated: 1 January 2004
Index Return to Main Contents
 

NAME

security_check_context - check the validity of a SELinux context  

SYNOPSIS

#include <selinux/selinux.h>

int security_check_context(security_context_t con);

int security_check_context_raw(security_context_t 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)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 10:53:02 GMT, January 20, 2018