Lines Matching refs:modinfo
77 semanage_module_info_t **modinfo);
80 semanage_module_info_t ** modinfo,
91 semanage_module_info_t **modinfo);
94 semanage_module_info_t **modinfo,
98 const semanage_module_info_t *modinfo,
995 const semanage_module_info_t *modinfo)
1002 modinfo,
1012 ERR(sh, "Unable to open %s module ext file.", modinfo->name);
1018 ERR(sh, "Unable to write %s module ext file.", modinfo->name);
1024 ERR(sh, "Unable to close %s module ext file.", modinfo->name);
1040 semanage_module_info_t *modinfo)
1057 if (!strcasecmp(modinfo->lang_ext, "cil")) {
1061 status = semanage_get_hll_compiler_path(sh, modinfo->lang_ext, &compiler_path);
1068 modinfo,
1078 modinfo,
1096 fprintf(stderr, "%s: ", modinfo->name);
1103 fprintf(stderr, "%s: ", modinfo->name);
1126 status = semanage_direct_write_langext(sh, "cil", modinfo);
1701 semanage_module_info_t modinfo;
1702 ret = semanage_module_info_init(sh, &modinfo);
1708 ret = semanage_module_info_set_priority(sh, &modinfo, sh->priority);
1714 ret = semanage_module_info_set_name(sh, &modinfo, module_name);
1720 ret = semanage_module_info_set_lang_ext(sh, &modinfo, lang_ext);
1726 ret = semanage_module_info_set_enabled(sh, &modinfo, -1);
1732 status = semanage_direct_install_info(sh, &modinfo, data, data_len);
1736 semanage_module_info_destroy(sh, &modinfo);
1832 semanage_module_info_t **modinfo)
1905 *modinfo = _modinfo;
1958 semanage_module_info_t ** modinfo,
1962 *modinfo = NULL;
1971 if (semanage_get_active_modules(sh, modinfo, num_modules) == -1) {
1985 semanage_module_info_destroy(sh, &(*modinfo[i]));
1986 modinfo[i] = NULL;
1988 free(*modinfo);
1989 *modinfo = NULL;
2011 semanage_module_info_t *modinfo = NULL;
2017 &modinfo);
2026 modinfo,
2049 semanage_module_info_destroy(sh, modinfo);
2050 free(modinfo);
2068 semanage_module_info_t *modinfo = NULL;
2110 &modinfo);
2119 modinfo,
2177 semanage_module_info_destroy(sh, modinfo);
2178 free(modinfo);
2213 semanage_module_info_t **modinfo)
2217 assert(modinfo);
2264 ret = semanage_module_info_create(sh, modinfo);
2270 ret = semanage_module_info_clone(sh, highest, *modinfo);
2289 ret = semanage_module_info_create(sh, modinfo);
2295 ret = semanage_module_info_set_priority(sh, *modinfo, modkey->priority);
2301 ret = semanage_module_info_set_name(sh, *modinfo, modkey->name);
2309 *modinfo,
2323 (*modinfo)->name, fn);
2332 (*modinfo)->name);
2337 ret = semanage_module_info_set_lang_ext(sh, *modinfo, tmp);
2348 (*modinfo)->name);
2357 *modinfo,
2374 ret = semanage_module_info_set_enabled(sh, *modinfo, 1);
2381 ret = semanage_module_info_set_enabled(sh, *modinfo, 0);
2403 const semanage_module_info_t *modinfo)
2429 ret = semanage_module_info_validate(modinfo);
2448 modinfo,
2465 modinfo,
2481 ret = semanage_direct_write_langext(sh, modinfo->lang_ext, modinfo);
2499 modinfo,
2508 ret = semanage_module_key_set_name(sh, &modkey, modinfo->name);
2514 if (modinfo->enabled == -1) {
2528 enabled = modinfo->enabled;
2592 semanage_module_info_t modinfo;
2593 ret = semanage_module_info_init(sh, &modinfo);
2629 &modinfo,
2638 &modinfo,
2689 &modinfo,
2700 (&modinfo),
2734 semanage_module_info_destroy(sh, &modinfo);
2771 const semanage_module_info_t *modinfo,
2776 assert(modinfo);
2796 ret = semanage_module_info_validate(modinfo);
2798 ERR(sh, "%s failed module validation.\n", modinfo->name);
2806 ret = semanage_module_key_set_name(sh, &higher_key, modinfo->name);
2814 if (higher_info->priority > modinfo->priority) {
2818 modinfo->name,
2820 modinfo->priority);
2822 else if (higher_info->priority < modinfo->priority) {
2826 modinfo->name,
2828 modinfo->priority);
2831 if (higher_info->enabled == 0 && modinfo->enabled == -1) {
2835 modinfo->name);
2840 ret = semanage_direct_set_module_info(sh, modinfo);
2847 if (!strcasecmp(modinfo->lang_ext, "cil")) {
2854 modinfo,
2874 modinfo,
2912 semanage_module_info_t *modinfo = NULL;
2965 ret = semanage_module_get_module_info(sh, &modkey_tmp, &modinfo);
2997 if (modkey->priority > modinfo->priority) {
3002 modinfo->name,
3003 modinfo->priority);
3010 semanage_module_info_destroy(sh, modinfo);
3011 free(modinfo);