Merge branch 'Teaman-ND' into Teaman-RT
[tomato.git] / release / src / router / busybox / selinux / load_policy.c
blob8fc92dbf3b1f7e60753076f0d72b4ed17b22257c
1 /*
2 * load_policy
3 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
5 * Licensed under GPLv2, see file LICENSE in this source tree.
6 */
7 #include "libbb.h"
9 int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
10 int load_policy_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
12 int rc;
14 if (argv[1]) {
15 bb_show_usage();
18 rc = selinux_mkload_policy(1);
19 if (rc < 0) {
20 bb_perror_msg_and_die("can't load policy");
23 return 0;