16cd6a6acSopenharmony_ci#ifndef _SEPOL_CONTEXT_H_ 26cd6a6acSopenharmony_ci#define _SEPOL_CONTEXT_H_ 36cd6a6acSopenharmony_ci 46cd6a6acSopenharmony_ci#include <sepol/context_record.h> 56cd6a6acSopenharmony_ci#include <sepol/policydb.h> 66cd6a6acSopenharmony_ci#include <sepol/handle.h> 76cd6a6acSopenharmony_ci 86cd6a6acSopenharmony_ci#ifdef __cplusplus 96cd6a6acSopenharmony_ciextern "C" { 106cd6a6acSopenharmony_ci#endif 116cd6a6acSopenharmony_ci 126cd6a6acSopenharmony_ci/* -- Deprecated -- */ 136cd6a6acSopenharmony_ci 146cd6a6acSopenharmony_ciextern int sepol_check_context(const char *context); 156cd6a6acSopenharmony_ci 166cd6a6acSopenharmony_ci/* -- End deprecated -- */ 176cd6a6acSopenharmony_ci 186cd6a6acSopenharmony_ciextern int sepol_context_check(sepol_handle_t * handle, 196cd6a6acSopenharmony_ci const sepol_policydb_t * policydb, 206cd6a6acSopenharmony_ci const sepol_context_t * context); 216cd6a6acSopenharmony_ci 226cd6a6acSopenharmony_ciextern int sepol_mls_contains(sepol_handle_t * handle, 236cd6a6acSopenharmony_ci const sepol_policydb_t * policydb, 246cd6a6acSopenharmony_ci const char *mls1, 256cd6a6acSopenharmony_ci const char *mls2, int *response); 266cd6a6acSopenharmony_ci 276cd6a6acSopenharmony_ciextern int sepol_mls_check(sepol_handle_t * handle, 286cd6a6acSopenharmony_ci const sepol_policydb_t * policydb, const char *mls); 296cd6a6acSopenharmony_ci 306cd6a6acSopenharmony_ci#ifdef __cplusplus 316cd6a6acSopenharmony_ci} 326cd6a6acSopenharmony_ci#endif 336cd6a6acSopenharmony_ci 346cd6a6acSopenharmony_ci#endif 35