Magellan Linux

Contents of /tags/mkinitrd-6_1_11/busybox/selinux/load_policy.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 928 - (show annotations) (download)
Wed Oct 28 13:31:19 2009 UTC (14 years, 7 months ago) by niro
File MIME type: text/plain
File size: 382 byte(s)
tagged 'mkinitrd-6_1_11'
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 }