mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-25 07:22:07 +00:00
ed7a6ba24a
Change-Id: I7da601767c3a4ebed7274e33304d8b589a9115fe Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
31 lines
733 B
C
31 lines
733 B
C
#ifndef _SEPOL_CONTEXT_H_
|
|
#define _SEPOL_CONTEXT_H_
|
|
|
|
#include <sepol/context_record.h>
|
|
#include <sepol/policydb.h>
|
|
#include <sepol/handle.h>
|
|
#include <sys/cdefs.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
/* -- Deprecated -- */
|
|
|
|
extern int sepol_check_context(const char *context);
|
|
|
|
/* -- End deprecated -- */
|
|
|
|
extern int sepol_context_check(sepol_handle_t * handle,
|
|
const sepol_policydb_t * policydb,
|
|
const sepol_context_t * context);
|
|
|
|
extern int sepol_mls_contains(sepol_handle_t * handle,
|
|
const sepol_policydb_t * policydb,
|
|
const char *mls1,
|
|
const char *mls2, int *response);
|
|
|
|
extern int sepol_mls_check(sepol_handle_t * handle,
|
|
const sepol_policydb_t * policydb, const char *mls);
|
|
|
|
__END_DECLS
|
|
#endif
|