#ifndef _SELINUX_ANDROID_H_
#define _SELINUX_ANDROID_H_
#include <sys/types.h>
#include <unistd.h>
#include <selinux/label.h>
#ifdef __cplusplus
extern "C" {
#endif
extern struct selabel_handle* selinux_android_file_context_handle(void);
extern int selinux_android_load_policy(void);
extern int selinux_android_reload_policy(void);
extern int selinux_android_setcontext(uid_t uid,
int isSystemServer,
const char *seinfo,
const char *name);
extern int selinux_android_setfilecon(const char *pkgdir,
const char *pkgname,
uid_t uid);
extern int selinux_android_setfilecon2(const char *pkgdir,
const char *pkgname,
const char *seinfo,
uid_t uid);
extern int selinux_android_restorecon(const char *file);
extern int selinux_android_seapp_context_reload(void);
#ifdef __cplusplus
}
#endif
#endif