Changes for kernel and Busybox
[tomato.git] / release / src / router / busybox / selinux / load_policy.c
blobce139dbf2f2458df3e29c1c4040e2801a90efbbc
1 /*
2 * load_policy
3 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
5 * Licensed under GPLv2, see file LICENSE in this source tree.
6 */
8 //usage:#define load_policy_trivial_usage NOUSAGE_STR
9 //usage:#define load_policy_full_usage ""
11 #include "libbb.h"
13 int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
14 int load_policy_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
16 int rc;
18 if (argv[1]) {
19 bb_show_usage();
22 rc = selinux_mkload_policy(1);
23 if (rc < 0) {
24 bb_perror_msg_and_die("can't load policy");
27 return 0;