source: MondoRescue/branches/2.2.9/mindi-busybox/selinux/load_policy.c@ 2897

Last change on this file since 2897 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:eol-style set to native
File size: 459 bytes
RevLine 
[1765]1/*
2 * load_policy
3 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
[2725]4 *
5 * Licensed under GPLv2, see file LICENSE in this source tree.
[1765]6 */
7#include "libbb.h"
8
[2725]9int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
10int load_policy_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
[1765]11{
[2725]12 int rc;
13
14 if (argv[1]) {
[1765]15 bb_show_usage();
16 }
17
[2725]18 rc = selinux_mkload_policy(1);
19 if (rc < 0) {
[1765]20 bb_perror_msg_and_die("can't load policy");
21 }
22
23 return 0;
24}
Note: See TracBrowser for help on using the repository browser.