blob: 4bc873e819cdc687fef3fa9a775155d4ed50f71d [file] [log] [blame]
Denis Vlasenko644849a2007-03-24 15:38:49 +00001/*
2 * load_policy
Denis Vlasenko644849a2007-03-24 15:38:49 +00003 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
Denis Vlasenkodb12d1d2008-12-07 00:52:58 +00004 *
5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
Denis Vlasenko644849a2007-03-24 15:38:49 +00006 */
Denis Vlasenkob6adbf12007-05-26 19:00:18 +00007#include "libbb.h"
Denis Vlasenko644849a2007-03-24 15:38:49 +00008
Denis Vlasenko9b49a5e2007-10-11 10:05:36 +00009int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
Denis Vlasenkoa60f84e2008-07-05 09:18:54 +000010int load_policy_main(int argc, char **argv UNUSED_PARAM)
Denis Vlasenko644849a2007-03-24 15:38:49 +000011{
Denis Vlasenkob042bd92007-09-26 18:01:32 +000012 int rc;
13
14 if (argc != 1) {
Denis Vlasenko644849a2007-03-24 15:38:49 +000015 bb_show_usage();
16 }
17
Denis Vlasenkob042bd92007-09-26 18:01:32 +000018 rc = selinux_mkload_policy(1);
19 if (rc < 0) {
Denis Vlasenko644849a2007-03-24 15:38:49 +000020 bb_perror_msg_and_die("can't load policy");
21 }
22
23 return 0;
24}