1sepol_check_context(S3E)Linux binary policy API documentatisoenpol_check_context(3)
2
3
4

NAME

6       sepol_check_context  - Check the validity of a security context against
7       a binary policy.
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

27       Returns 0 on success or -1 with errno set otherwise.
28
29
30
31sds@tycho.nsa.gov                15 March 2005          sepol_check_context(3)
Impressum