aboutsummaryrefslogtreecommitdiff
path: root/selinux/selinuxenabled.c
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/selinuxenabled.c')
-rw-r--r--selinux/selinuxenabled.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/selinux/selinuxenabled.c b/selinux/selinuxenabled.c
new file mode 100644
index 0000000..ea233d8
--- /dev/null
+++ b/selinux/selinuxenabled.c
@@ -0,0 +1,14 @@
+/*
+ * selinuxenabled
+ *
+ * Based on libselinux 1.33.1
+ * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
+ *
+ */
+#include "libbb.h"
+
+int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int selinuxenabled_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
+{
+ return !is_selinux_enabled();
+}