Magellan Linux

Contents of /trunk/mkinitrd-magellan/busybox/selinux/load_policy.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 816 - (show annotations) (download)
Fri Apr 24 18:33:46 2009 UTC (15 years, 1 month ago) by niro
File MIME type: text/plain
File size: 382 byte(s)
-updated to busybox-1.13.4
1 /*
2 * load_policy
3 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
4 */
5 #include "libbb.h"
6
7 int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
8 int load_policy_main(int argc, char **argv UNUSED_PARAM)
9 {
10 int rc;
11
12 if (argc != 1) {
13 bb_show_usage();
14 }
15
16 rc = selinux_mkload_policy(1);
17 if (rc < 0) {
18 bb_perror_msg_and_die("can't load policy");
19 }
20
21 return 0;
22 }