1security_check_context(3) SELinux API documentation security_check_context(3)
2
3
4
6 security_check_context - check the validity of a SELinux context
7
9 #include <selinux/selinux.h>
10
11 int security_check_context(char * con);
12
13 int security_check_context_raw(char * con);
14
16 security_check_context() returns 0 if SELinux is running and the con‐
17 text is valid, otherwise it returns -1.
18
19 security_check_context_raw() behaves identically to
20 security_check_context() but does not perform context translation.
21
23 selinux(8)
24
25
26
27russell@coker.com.au 1 January 2004 security_check_context(3)