Lines Matching refs:modkey
658 semanage_module_key_t **modkey) in semanage_module_key_create() argument
661 assert(modkey); in semanage_module_key_create()
663 *modkey = malloc(sizeof(semanage_module_key_t)); in semanage_module_key_create()
664 if (*modkey == NULL) return -1; in semanage_module_key_create()
666 return semanage_module_key_init(sh, *modkey); in semanage_module_key_create()
672 semanage_module_key_t *modkey) in hidden_def()
676 if (modkey) { in hidden_def()
677 free(modkey->name); in hidden_def()
680 return semanage_module_key_init(sh, modkey); in hidden_def()
686 semanage_module_key_t *modkey) in hidden_def()
689 assert(modkey); in hidden_def()
691 modkey->name = NULL; in hidden_def()
692 modkey->priority = 0; in hidden_def()
698 semanage_module_key_t *modkey, in semanage_module_key_get_name() argument
702 assert(modkey); in semanage_module_key_get_name()
705 *name = modkey->name; in semanage_module_key_get_name()
713 semanage_module_key_t *modkey, in hidden_def()
717 assert(modkey); in hidden_def()
720 *priority = modkey->priority; in hidden_def()
728 semanage_module_key_t *modkey, in hidden_def()
732 assert(modkey); in hidden_def()
751 free(modkey->name); in hidden_def()
752 modkey->name = tmp; in hidden_def()
761 semanage_module_key_t *modkey, in hidden_def()
765 assert(modkey); in hidden_def()
773 modkey->priority = priority; in hidden_def()
781 const semanage_module_key_t *modkey, in hidden_def()
785 assert(modkey); in hidden_def()
797 return sh->funcs->get_enabled(sh, modkey, enabled); in hidden_def()
806 const semanage_module_key_t *modkey, in semanage_module_set_enabled() argument
810 assert(modkey); in semanage_module_set_enabled()
826 return sh->funcs->set_enabled(sh, modkey, enabled); in semanage_module_set_enabled()
836 semanage_module_key_t *modkey = NULL; in hidden_def() local
838 rc = semanage_module_key_create(sh, &modkey); in hidden_def()
842 rc = semanage_module_key_set_name(sh, modkey, module_name); in hidden_def()
846 rc = semanage_module_set_enabled(sh, modkey, 1); in hidden_def()
853 semanage_module_key_destroy(sh, modkey); in hidden_def()
854 free(modkey); in hidden_def()
864 semanage_module_key_t *modkey = NULL; in semanage_module_disable() local
866 rc = semanage_module_key_create(sh, &modkey); in semanage_module_disable()
870 rc = semanage_module_key_set_name(sh, modkey, module_name); in semanage_module_disable()
874 rc = semanage_module_set_enabled(sh, modkey, 0); in semanage_module_disable()
881 semanage_module_key_destroy(sh, modkey); in semanage_module_disable()
882 free(modkey); in semanage_module_disable()
1049 const semanage_module_key_t *modkey, in semanage_module_get_module_info() argument
1053 assert(modkey); in semanage_module_get_module_info()
1065 return sh->funcs->get_module_info(sh, modkey, modinfo); in semanage_module_get_module_info()
1110 const semanage_module_key_t *modkey) in semanage_module_remove_key() argument
1125 return sh->funcs->remove_key(sh, modkey); in semanage_module_remove_key()