source: MondoRescue/branches/3.2/mindi-busybox/selinux/load_policy.c@ 3232

Last change on this file since 3232 was 3232, checked in by Bruno Cornec, 10 years ago
  • Update mindi-busybox to 1.21.1
  • Property svn:eol-style set to native
File size: 557 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 */
[3232]7
8//usage:#define load_policy_trivial_usage NOUSAGE_STR
9//usage:#define load_policy_full_usage ""
10
[1765]11#include "libbb.h"
12
[2725]13int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
14int load_policy_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
[1765]15{
[2725]16 int rc;
17
18 if (argv[1]) {
[1765]19 bb_show_usage();
20 }
21
[2725]22 rc = selinux_mkload_policy(1);
23 if (rc < 0) {
[1765]24 bb_perror_msg_and_die("can't load policy");
25 }
26
27 return 0;
28}
Note: See TracBrowser for help on using the repository browser.