diff options
Diffstat (limited to 'preload-selinux.h')
-rw-r--r-- | preload-selinux.h | 11 |
1 files changed, 11 insertions, 0 deletions
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); + |