Contents of /tags/mkinitrd-6_1_8/busybox/selinux/load_policy.c
Parent Directory | Revision Log
Revision 916 -
(show annotations)
(download)
Wed Oct 28 00:17:50 2009 UTC (14 years, 11 months ago) by niro
File MIME type: text/plain
File size: 382 byte(s)
Wed Oct 28 00:17:50 2009 UTC (14 years, 11 months ago) by niro
File MIME type: text/plain
File size: 382 byte(s)
tagged 'mkinitrd-6_1_8'
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 | } |