load_policy.c 382 B

12345678910111213141516171819202122
  1. /*
  2. * load_policy
  3. * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
  4. */
  5. #include "libbb.h"
  6. int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
  7. int load_policy_main(int argc, char **argv UNUSED_PARAM)
  8. {
  9. int rc;
  10. if (argc != 1) {
  11. bb_show_usage();
  12. }
  13. rc = selinux_mkload_policy(1);
  14. if (rc < 0) {
  15. bb_perror_msg_and_die("can't load policy");
  16. }
  17. return 0;
  18. }