Home | History | Annotate | Download | only in sepol
      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 
      8 #ifdef __cplusplus
      9 extern "C" {
     10 #endif
     11 
     12 /* -- Deprecated -- */
     13 
     14 extern int sepol_check_context(const char *context);
     15 
     16 /* -- End deprecated -- */
     17 
     18 extern int sepol_context_check(sepol_handle_t * handle,
     19 			       const sepol_policydb_t * policydb,
     20 			       const sepol_context_t * context);
     21 
     22 extern int sepol_mls_contains(sepol_handle_t * handle,
     23 			      const sepol_policydb_t * policydb,
     24 			      const char *mls1,
     25 			      const char *mls2, int *response);
     26 
     27 extern int sepol_mls_check(sepol_handle_t * handle,
     28 			   const sepol_policydb_t * policydb, const char *mls);
     29 
     30 #ifdef __cplusplus
     31 }
     32 #endif
     33 
     34 #endif
     35