1sepol_check_context(S3E)Linux binary policy API documentatisoenpol_check_context(3)
2
3
4
6 sepol_check_context - Check the validity of a security context against
7 a binary policy.
8
10 #include <sepol/sepol.h>
11
12 int sepol_check_context(const char *context);
13
14 int sepol_set_policydb_from_file(FILE *fp);
15
16
18 sepol_check_context checks the validity of a security context against a
19 binary policy previously loaded from a file via sepol_set_poli‐
20 cydb_from_file. It is used by setfiles -c to validate a file contexts
21 configuration against the binary policy upon policy builds. For vali‐
22 dating a context against the active policy on a SELinux system, use
23 security_check_context from libselinux instead.
24
25
27 Returns 0 on success or -EINVAL otherwise.
28
29
30
31sds@tycho.nsa.gov 15 March 2005 sepol_check_context(3)