1 #ifndef _SELINUX_ANDROID_H_ 2 #define _SELINUX_ANDROID_H_ 3 4 #include <sys/types.h> 5 #include <unistd.h> 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 extern int selinux_android_setcontext(uid_t uid, 12 int isSystemServer, 13 const char *seinfo, 14 const char *name); 15 16 extern int selinux_android_setfilecon(const char *pkgdir, 17 const char *name, 18 uid_t uid); 19 20 extern int selinux_android_restorecon(const char *file); 21 22 extern int selinux_android_seapp_context_reload(void); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 #endif 28