selinuxenabled.c 322 B

1234567891011121314
  1. /*
  2. * selinuxenabled
  3. *
  4. * Based on libselinux 1.33.1
  5. * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
  6. *
  7. */
  8. #include "libbb.h"
  9. int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
  10. int selinuxenabled_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
  11. {
  12. return !is_selinux_enabled();
  13. }