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