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