blob: ce830dc22025a7b9985772dd5fd471552b551d75 [file] [log] [blame]
Denis Vlasenkod46d3c22007-02-06 19:28:50 +00001/*
2 * selinuxenabled
Denis Vlasenko8e858e22007-03-07 09:35:43 +00003 *
Denis Vlasenkod46d3c22007-02-06 19:28:50 +00004 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
6 *
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02007 * Licensed under GPLv2, see file LICENSE in this source tree.
Denis Vlasenkod46d3c22007-02-06 19:28:50 +00008 */
Pere Orga5bc8c002011-04-11 03:29:49 +02009
10//usage:#define selinuxenabled_trivial_usage NOUSAGE_STR
11//usage:#define selinuxenabled_full_usage ""
12
Denis Vlasenkob6adbf12007-05-26 19:00:18 +000013#include "libbb.h"
Denis Vlasenkod46d3c22007-02-06 19:28:50 +000014
Denis Vlasenko9b49a5e2007-10-11 10:05:36 +000015int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
Denis Vlasenkoa60f84e2008-07-05 09:18:54 +000016int selinuxenabled_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
Denis Vlasenkod46d3c22007-02-06 19:28:50 +000017{
18 return !is_selinux_enabled();
19}