• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SEPOL_CONTEXT_H_
2 #define _SEPOL_CONTEXT_H_
3 
4 #include <sepol/context_record.h>
5 #include <sepol/policydb.h>
6 #include <sepol/handle.h>
7 #include <sys/cdefs.h>
8 
9 __BEGIN_DECLS
10 
11 /* -- Deprecated -- */
12 
13 extern int sepol_check_context(const char *context);
14 
15 /* -- End deprecated -- */
16 
17 extern int sepol_context_check(sepol_handle_t * handle,
18 			       const sepol_policydb_t * policydb,
19 			       const sepol_context_t * context);
20 
21 extern int sepol_mls_contains(sepol_handle_t * handle,
22 			      const sepol_policydb_t * policydb,
23 			      const char *mls1,
24 			      const char *mls2, int *response);
25 
26 extern int sepol_mls_check(sepol_handle_t * handle,
27 			   const sepol_policydb_t * policydb, const char *mls);
28 
29 __END_DECLS
30 #endif
31