From 0e40a793f2452276bf18ed70d6206898d620c13f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 25 Oct 2019 12:07:15 +0200 Subject: add SELinux example (wip) --- preload-selinux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 preload-selinux.h (limited to 'preload-selinux.h') diff --git a/preload-selinux.h b/preload-selinux.h new file mode 100644 index 0000000..5d24b3f --- /dev/null +++ b/preload-selinux.h @@ -0,0 +1,11 @@ +#define FFI_SCOPE "_REMI_SELINUX_" +#define FFI_LIB "libselinux.so.1" + +/* Copy/paste from selinux/*.h */ + +/* Return 1 if we are running on a SELinux kernel, or 0 if not or -1 if we get an error. */ +extern int is_selinux_enabled(void); + +/* Get the enforce flag value. */ +extern int security_getenforce(void); + -- cgit