Annotation of /tags/mkinitrd-6_1_11/busybox/selinux/load_policy.c
Parent Directory | Revision Log
Revision 816 -
(hide annotations)
(download)
Fri Apr 24 18:33:46 2009 UTC (15 years, 5 months ago) by niro
Original Path: trunk/mkinitrd-magellan/busybox/selinux/load_policy.c
File MIME type: text/plain
File size: 382 byte(s)
Fri Apr 24 18:33:46 2009 UTC (15 years, 5 months ago) by niro
Original Path: trunk/mkinitrd-magellan/busybox/selinux/load_policy.c
File MIME type: text/plain
File size: 382 byte(s)
-updated to busybox-1.13.4
1 | niro | 816 | /* |
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 | } |