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.
12 int getenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
13 int getenforce_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
17 rc = is_selinux_enabled();
19 bb_error_msg_and_die("is_selinux_enabled() failed");
22 rc = security_getenforce();
24 bb_error_msg_and_die("getenforce() failed");