summaryrefslogtreecommitdiffstats
path: root/include/selinux.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/selinux.h')
-rw-r--r--include/selinux.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/selinux.h b/include/selinux.h
new file mode 100644
index 0000000..592c768
--- /dev/null
+++ b/include/selinux.h
@@ -0,0 +1,10 @@
+#if HAVE_SELINUX
+#include <selinux/selinux.h>
+#else
+int is_selinux_enabled(void);
+void freecon(char *context);
+int getpidcon(pid_t pid, char **context);
+int getfilecon(const char *path, char **context);
+int security_get_initial_context(const char *name, char **context);
+int setexecfilecon(const char *filename, const char *fallback_type);
+#endif