Lines Matching refs:modinfo
150 semanage_module_info_t **modinfo) { in semanage_module_extract() argument
159 return sh->funcs->extract(sh, modkey, extract_cil, mapped_data, data_len, modinfo); in semanage_module_extract()
217 semanage_module_info_t ** modinfo, int *num_modules) in semanage_module_list() argument
226 return sh->funcs->list(sh, modinfo, num_modules); in semanage_module_list()
229 void semanage_module_info_datum_destroy(semanage_module_info_t * modinfo) in semanage_module_info_datum_destroy() argument
231 if (modinfo != NULL) { in semanage_module_info_datum_destroy()
232 modinfo->priority = 0; in semanage_module_info_datum_destroy()
234 free(modinfo->name); in semanage_module_info_datum_destroy()
235 modinfo->name = NULL; in semanage_module_info_datum_destroy()
237 free(modinfo->lang_ext); in semanage_module_info_datum_destroy()
238 modinfo->lang_ext = NULL; in semanage_module_info_datum_destroy()
240 modinfo->enabled = -1; in semanage_module_info_datum_destroy()
254 const char *semanage_module_get_name(semanage_module_info_t * modinfo) in hidden_def()
256 return modinfo->name; in hidden_def()
264 const char *semanage_module_get_version(semanage_module_info_t * modinfo in hidden_def()
271 semanage_module_info_t **modinfo) in semanage_module_info_create() argument
274 assert(modinfo); in semanage_module_info_create()
276 *modinfo = malloc(sizeof(semanage_module_info_t)); in semanage_module_info_create()
277 if (*modinfo == NULL) return -1; in semanage_module_info_create()
279 return semanage_module_info_init(sh, *modinfo); in semanage_module_info_create()
285 semanage_module_info_t *modinfo) in hidden_def()
289 if (!modinfo) { in hidden_def()
293 free(modinfo->name); in hidden_def()
294 free(modinfo->lang_ext); in hidden_def()
296 return semanage_module_info_init(sh, modinfo); in hidden_def()
302 semanage_module_info_t *modinfo) in hidden_def()
305 assert(modinfo); in hidden_def()
307 modinfo->priority = 0; in hidden_def()
308 modinfo->name = NULL; in hidden_def()
309 modinfo->lang_ext = NULL; in hidden_def()
310 modinfo->enabled = -1; in hidden_def()
362 semanage_module_info_t *modinfo, in semanage_module_info_get_priority() argument
366 assert(modinfo); in semanage_module_info_get_priority()
369 *priority = modinfo->priority; in semanage_module_info_get_priority()
377 semanage_module_info_t *modinfo, in hidden_def()
381 assert(modinfo); in hidden_def()
384 *name = modinfo->name; in hidden_def()
392 semanage_module_info_t *modinfo, in hidden_def()
396 assert(modinfo); in hidden_def()
399 *lang_ext = modinfo->lang_ext; in hidden_def()
407 semanage_module_info_t *modinfo, in hidden_def()
411 assert(modinfo); in hidden_def()
414 *enabled = modinfo->enabled; in hidden_def()
422 semanage_module_info_t *modinfo, in hidden_def()
426 assert(modinfo); in hidden_def()
435 modinfo->priority = priority; in hidden_def()
443 semanage_module_info_t *modinfo, in hidden_def()
447 assert(modinfo); in hidden_def()
465 free(modinfo->name); in hidden_def()
466 modinfo->name = tmp; in hidden_def()
474 semanage_module_info_t *modinfo, in hidden_def()
478 assert(modinfo); in hidden_def()
496 free(modinfo->lang_ext); in hidden_def()
497 modinfo->lang_ext = tmp; in hidden_def()
505 semanage_module_info_t *modinfo, in hidden_def()
509 assert(modinfo); in hidden_def()
518 modinfo->enabled = enabled; in hidden_def()
526 const semanage_module_info_t *modinfo, in hidden_def()
532 assert(modinfo); in hidden_def()
548 ret = semanage_module_validate_priority(modinfo->priority); in hidden_def()
553 modinfo->priority); in hidden_def()
562 modinfo->priority); in hidden_def()
571 ret = semanage_module_validate_priority(modinfo->priority); in hidden_def()
576 modinfo->priority); in hidden_def()
581 ret = semanage_module_validate_name(modinfo->name); in hidden_def()
584 ERR(sh, "Name %s is invalid.", modinfo->name); in hidden_def()
593 modinfo->priority, in hidden_def()
594 modinfo->name); in hidden_def()
611 ret = semanage_module_validate_priority(modinfo->priority); in hidden_def()
616 modinfo->priority); in hidden_def()
621 ret = semanage_module_validate_name(modinfo->name); in hidden_def()
624 ERR(sh, "Name %s is invalid.", modinfo->name); in hidden_def()
633 modinfo->priority, in hidden_def()
634 modinfo->name, in hidden_def()
646 ret = semanage_module_validate_name(modinfo->name); in hidden_def()
649 ERR(sh, "Name %s is invalid.", modinfo->name); in hidden_def()
658 modinfo->name); in hidden_def()
821 int semanage_module_get_enabled_1_0(semanage_module_info_t *modinfo) in semanage_module_get_enabled_1_0() argument
823 return modinfo->enabled; in semanage_module_get_enabled_1_0()
946 int semanage_module_info_validate(const semanage_module_info_t *modinfo) in semanage_module_info_validate() argument
948 if (semanage_module_validate_priority(modinfo->priority) != 0 || in semanage_module_info_validate()
949 semanage_module_validate_name(modinfo->name) != 0 || in semanage_module_info_validate()
950 semanage_module_validate_lang_ext(modinfo->lang_ext) != 0 || in semanage_module_info_validate()
951 semanage_module_validate_enabled(modinfo->enabled) != 0) { in semanage_module_info_validate()
1071 semanage_module_info_t **modinfo) in semanage_module_get_module_info() argument
1075 assert(modinfo); in semanage_module_get_module_info()
1086 return sh->funcs->get_module_info(sh, modkey, modinfo); in semanage_module_get_module_info()
1110 const semanage_module_info_t *modinfo, in semanage_module_install_info() argument
1127 return sh->funcs->install_info(sh, modinfo, data, data_len); in semanage_module_install_info()