hexdump: accept hex numbers in -n, closes 16195
[busybox-git.git] / selinux / selinuxenabled.c
blobe70a452cfa4f5c42da2160b1b97e1e97c9a61d3b
1 /*
2 * selinuxenabled
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.
8 */
9 //config:config SELINUXENABLED
10 //config: bool "selinuxenabled (321 bytes)"
11 //config: default n
12 //config: depends on SELINUX
13 //config: help
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 ""
24 #include "libbb.h"
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();