mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 06:52:12 +00:00
cf8625be58
ratbert90 submitted this patch via https://github.com/SELinuxProject/selinux/issues/19. Apparently musl does not provide sys/cdefs.h, see http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
35 lines
752 B
C
35 lines
752 B
C
#ifndef _SEPOL_CONTEXT_H_
|
|
#define _SEPOL_CONTEXT_H_
|
|
|
|
#include <sepol/context_record.h>
|
|
#include <sepol/policydb.h>
|
|
#include <sepol/handle.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* -- 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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|