Lines Matching refs:modkey

74 				       const semanage_module_key_t *modkey,
77 const semanage_module_key_t *modkey,
81 const semanage_module_key_t *modkey,
94 const semanage_module_key_t *modkey);
1501 semanage_module_key_t modkey; in semanage_direct_remove() local
1502 ret = semanage_module_key_init(sh, &modkey); in semanage_direct_remove()
1508 ret = semanage_module_key_set_priority(sh, &modkey, sh->priority); in semanage_direct_remove()
1514 ret = semanage_module_key_set_name(sh, &modkey, module_name); in semanage_direct_remove()
1520 status = semanage_direct_remove_key(sh, &modkey); in semanage_direct_remove()
1575 const semanage_module_key_t *modkey, in semanage_direct_get_enabled() argument
1579 assert(modkey); in semanage_direct_get_enabled()
1592 modkey, in semanage_direct_get_enabled()
1626 const semanage_module_key_t *modkey, in semanage_direct_set_enabled() argument
1630 assert(modkey); in semanage_direct_set_enabled()
1649 ret = semanage_module_validate_name(modkey->name); in semanage_direct_set_enabled()
1652 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_set_enabled()
1678 modkey, in semanage_direct_set_enabled()
1704 modkey->name); in semanage_direct_set_enabled()
1712 modkey->name); in semanage_direct_set_enabled()
1725 modkey->name); in semanage_direct_set_enabled()
1739 modkey->name); in semanage_direct_set_enabled()
1779 const semanage_module_key_t *modkey, in semanage_direct_get_module_info() argument
1783 assert(modkey); in semanage_direct_get_module_info()
1802 ret = semanage_module_validate_name(modkey->name); in semanage_direct_get_module_info()
1805 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_get_module_info()
1811 if (modkey->priority == 0) { in semanage_direct_get_module_info()
1819 ret = strcmp(modinfos[i].name, modkey->name); in semanage_direct_get_module_info()
1847 ret = semanage_module_validate_priority(modkey->priority); in semanage_direct_get_module_info()
1850 ERR(sh, "Priority %d is invalid.", modkey->priority); in semanage_direct_get_module_info()
1862 ret = semanage_module_info_set_priority(sh, *modinfo, modkey->priority); in semanage_direct_get_module_info()
1868 ret = semanage_module_info_set_name(sh, *modinfo, modkey->name); in semanage_direct_get_module_info()
1973 semanage_module_key_t modkey; in semanage_direct_set_module_info() local
1974 ret = semanage_module_key_init(sh, &modkey); in semanage_direct_set_module_info()
2070 ret = semanage_module_key_set_name(sh, &modkey, modinfo->name); in semanage_direct_set_module_info()
2082 &modkey, in semanage_direct_set_module_info()
2093 ret = semanage_module_set_enabled(sh, &modkey, enabled); in semanage_direct_set_module_info()
2100 semanage_module_key_destroy(sh, &modkey); in semanage_direct_set_module_info()
2470 const semanage_module_key_t *modkey) in semanage_direct_remove_key() argument
2473 assert(modkey); in semanage_direct_remove_key()
2489 ret = semanage_module_validate_priority(modkey->priority); in semanage_direct_remove_key()
2492 ERR(sh, "Priority %d is invalid.", modkey->priority); in semanage_direct_remove_key()
2497 ret = semanage_module_validate_name(modkey->name); in semanage_direct_remove_key()
2500 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_remove_key()
2505 ret = semanage_module_key_set_name(sh, &modkey_tmp, modkey->name); in semanage_direct_remove_key()
2514 (const semanage_module_info_t *)modkey, in semanage_direct_remove_key()
2526 ERR(sh, "Unable to remove module %s at priority %d.", modkey->name, modkey->priority); in semanage_direct_remove_key()
2538 modkey->name, in semanage_direct_remove_key()
2539 modkey->name); in semanage_direct_remove_key()
2544 (const semanage_module_info_t *)modkey, in semanage_direct_remove_key()
2564 if (modkey->priority > modinfo->priority) { in semanage_direct_remove_key()