table of contents
other versions
- stretch 2.6-3+b3
- testing 2.8-1+b1
- unstable 2.8-1+b1
- experimental 2.9-1
security_check_context(3) | SELinux API documentation | security_check_context(3) |
NAME¶
security_check_context - check the validity of a SELinux contextSYNOPSIS¶
#include <selinux/selinux.h>int security_check_context(char * con);
int security_check_context_raw(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)1 January 2004 | russell@coker.com.au |