summaryrefslogtreecommitdiff
path: root/release/src/router/busybox/selinux/selinuxenabled.c
diff options
context:
space:
mode:
Diffstat (limited to 'release/src/router/busybox/selinux/selinuxenabled.c')
-rw-r--r--release/src/router/busybox/selinux/selinuxenabled.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/release/src/router/busybox/selinux/selinuxenabled.c b/release/src/router/busybox/selinux/selinuxenabled.c
new file mode 100644
index 00000000..1cf93c3f
--- /dev/null
+++ b/release/src/router/busybox/selinux/selinuxenabled.c
@@ -0,0 +1,15 @@
+/*
+ * selinuxenabled
+ *
+ * Based on libselinux 1.33.1
+ * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
+ *
+ * Licensed under GPLv2, see file LICENSE in this tarball for details.
+ */
+#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();
+}