4 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
7 * Licensed under GPLv2, see file LICENSE in this source tree.
9 //config:config SELINUXENABLED
10 //config: bool "selinuxenabled"
12 //config: depends on SELINUX
14 //config: Enable support for this command to be used within shell scripts
15 //config: to determine if selinux is enabled.
17 //applet:IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP))
19 //kbuild:lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o
21 //usage:#define selinuxenabled_trivial_usage NOUSAGE_STR
22 //usage:#define selinuxenabled_full_usage ""
26 int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
27 int selinuxenabled_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
29 return !is_selinux_enabled();