context.h 682 B

1234567891011121314151617181920212223242526
  1. #ifndef _SEPOL_CONTEXT_H_
  2. #define _SEPOL_CONTEXT_H_
  3. #include <sepol/context_record.h>
  4. #include <sepol/policydb.h>
  5. #include <sepol/handle.h>
  6. /* -- Deprecated -- */
  7. extern int sepol_check_context(const char *context);
  8. /* -- End deprecated -- */
  9. extern int sepol_context_check(sepol_handle_t * handle,
  10. const sepol_policydb_t * policydb,
  11. const sepol_context_t * context);
  12. extern int sepol_mls_contains(sepol_handle_t * handle,
  13. const sepol_policydb_t * policydb,
  14. const char *mls1,
  15. const char *mls2, int *response);
  16. extern int sepol_mls_check(sepol_handle_t * handle,
  17. const sepol_policydb_t * policydb, const char *mls);
  18. #endif