aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Bellavance <flintman@flintmancomputers.com>2016-08-30 09:28:06 -0400
committerMichael Bestas <mkbestas@lineageos.org>2018-08-10 16:56:26 +0300
commitcd407619c2eb83d871e82f6be2efab790230fedd (patch)
treecf559851c2ea1dd92950b1319dc9aedef366d068
parent0d8f825909d3e600facbf23be4758877f98c2602 (diff)
downloadandroid_external_selinux-lineage-16.0.tar.gz
android_external_selinux-lineage-16.0.tar.bz2
android_external_selinux-lineage-16.0.zip
selinux: add selinux_status_getenforce to headerlineage-16.0
Change-Id: I2d6c366b7498d9760cb0bc21bade9b66b20815e9
-rw-r--r--libselinux/include/selinux/selinux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libselinux/include/selinux/selinux.h b/libselinux/include/selinux/selinux.h
index 01201eee..173daeae 100644
--- a/libselinux/include/selinux/selinux.h
+++ b/libselinux/include/selinux/selinux.h
@@ -10,6 +10,8 @@ extern "C" {
/* 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);
+/* Return 1 if we are running on a enforced, or 0 if not or -1 if we get an error. */
+extern int selinux_status_getenforce(void);
/* Return 1 if we are running on a SELinux MLS kernel, or 0 otherwise. */
extern int is_selinux_mls_enabled(void);