Annotation of /trunk/mkinitrd-magellan/busybox/selinux/load_policy.c
Parent Directory | Revision Log
Revision 984 -
(hide annotations)
(download)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File MIME type: text/plain
File size: 467 byte(s)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File MIME type: text/plain
File size: 467 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 | niro | 816 | /* |
2 | * load_policy | ||
3 | * Author: Yuichi Nakamura <ynakam@hitachisoft.jp> | ||
4 | niro | 984 | * |
5 | * Licensed under GPLv2, see file LICENSE in this tarball for details. | ||
6 | niro | 816 | */ |
7 | #include "libbb.h" | ||
8 | |||
9 | int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | ||
10 | niro | 984 | int load_policy_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
11 | niro | 816 | { |
12 | int rc; | ||
13 | |||
14 | niro | 984 | if (argv[1]) { |
15 | niro | 816 | bb_show_usage(); |
16 | } | ||
17 | |||
18 | rc = selinux_mkload_policy(1); | ||
19 | if (rc < 0) { | ||
20 | bb_perror_msg_and_die("can't load policy"); | ||
21 | } | ||
22 | |||
23 | return 0; | ||
24 | } |