Home | History | Annotate | Download | only in src

Lines Matching refs:mod

372 static int module_package_read_offsets(sepol_module_package_t * mod,
399 mod->version = le32_to_cpu(buf[1]);
463 int sepol_module_package_read(sepol_module_package_t * mod,
472 if (module_package_read_offsets(mod, file, &offsets, &nsec))
511 mod->file_contexts_len = len - sizeof(uint32_t);
512 mod->file_contexts =
513 (char *)malloc(mod->file_contexts_len);
514 if (!mod->file_contexts) {
519 (mod->file_contexts, file,
520 mod->file_contexts_len)) {
524 free(mod->file_contexts);
525 mod->file_contexts = NULL;
538 mod->seusers_len = len - sizeof(uint32_t);
539 mod->seusers = (char *)malloc(mod->seusers_len);
540 if (!mod->seusers) {
544 if (read_helper(mod->seusers, file, mod->seusers_len)) {
547 free(mod->seusers);
548 mod->seusers = NULL;
561 mod->user_extra_len = len - sizeof(uint32_t);
562 mod->user_extra = (char *)malloc(mod->user_extra_len);
563 if (!mod->user_extra) {
568 (mod->user_extra, file, mod->user_extra_len)) {
572 free(mod->user_extra);
573 mod->user_extra = NULL;
586 mod->netfilter_contexts_len = len - sizeof(uint32_t);
587 mod->netfilter_contexts =
588 (char *)malloc(mod->netfilter_contexts_len);
589 if (!mod->netfilter_contexts) {
594 (mod->netfilter_contexts, file,
595 mod->netfilter_contexts_len)) {
599 free(mod->netfilter_contexts);
600 mod->netfilter_contexts = NULL;
617 rc = policydb_read(&mod->policy->p, file, verbose);
652 sepol_module_package_t *mod = NULL;
659 if (sepol_module_package_create(&mod))
662 if (module_package_read_offsets(mod, file, &offsets, &nsec)) {
843 sepol_module_package_free(mod);
848 sepol_module_package_free(mod);