Lines Matching refs:modkey
73 semanage_module_key_t *modkey,
83 const semanage_module_key_t *modkey,
86 const semanage_module_key_t *modkey,
90 const semanage_module_key_t *modkey,
103 const semanage_module_key_t *modkey);
1828 semanage_module_key_t *modkey, in semanage_direct_extract() argument
1847 (const semanage_module_info_t *)modkey, in semanage_direct_extract()
1862 modkey, in semanage_direct_extract()
1925 semanage_module_key_t modkey; in semanage_direct_remove() local
1926 ret = semanage_module_key_init(sh, &modkey); in semanage_direct_remove()
1932 ret = semanage_module_key_set_priority(sh, &modkey, sh->priority); in semanage_direct_remove()
1938 ret = semanage_module_key_set_name(sh, &modkey, module_name); in semanage_direct_remove()
1944 status = semanage_direct_remove_key(sh, &modkey); in semanage_direct_remove()
1999 const semanage_module_key_t *modkey, in semanage_direct_get_enabled() argument
2003 assert(modkey); in semanage_direct_get_enabled()
2016 modkey, in semanage_direct_get_enabled()
2056 const semanage_module_key_t *modkey, in semanage_direct_set_enabled() argument
2060 assert(modkey); in semanage_direct_set_enabled()
2080 ret = semanage_module_validate_name(modkey->name); in semanage_direct_set_enabled()
2083 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_set_enabled()
2109 modkey, in semanage_direct_set_enabled()
2137 modkey->name); in semanage_direct_set_enabled()
2145 modkey->name); in semanage_direct_set_enabled()
2158 modkey->name); in semanage_direct_set_enabled()
2172 modkey->name); in semanage_direct_set_enabled()
2212 const semanage_module_key_t *modkey, in semanage_direct_get_module_info() argument
2216 assert(modkey); in semanage_direct_get_module_info()
2235 ret = semanage_module_validate_name(modkey->name); in semanage_direct_get_module_info()
2238 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_get_module_info()
2244 if (modkey->priority == 0) { in semanage_direct_get_module_info()
2252 ret = strcmp(modinfos[i].name, modkey->name); in semanage_direct_get_module_info()
2280 ret = semanage_module_validate_priority(modkey->priority); in semanage_direct_get_module_info()
2283 ERR(sh, "Priority %d is invalid.", modkey->priority); in semanage_direct_get_module_info()
2295 ret = semanage_module_info_set_priority(sh, *modinfo, modkey->priority); in semanage_direct_get_module_info()
2301 ret = semanage_module_info_set_name(sh, *modinfo, modkey->name); in semanage_direct_get_module_info()
2413 semanage_module_key_t modkey; in semanage_direct_set_module_info() local
2414 ret = semanage_module_key_init(sh, &modkey); in semanage_direct_set_module_info()
2508 ret = semanage_module_key_set_name(sh, &modkey, modinfo->name); in semanage_direct_set_module_info()
2520 &modkey, in semanage_direct_set_module_info()
2531 ret = semanage_module_set_enabled(sh, &modkey, enabled); in semanage_direct_set_module_info()
2538 semanage_module_key_destroy(sh, &modkey); in semanage_direct_set_module_info()
2903 const semanage_module_key_t *modkey) in semanage_direct_remove_key() argument
2906 assert(modkey); in semanage_direct_remove_key()
2922 ret = semanage_module_validate_priority(modkey->priority); in semanage_direct_remove_key()
2925 ERR(sh, "Priority %d is invalid.", modkey->priority); in semanage_direct_remove_key()
2930 ret = semanage_module_validate_name(modkey->name); in semanage_direct_remove_key()
2933 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_remove_key()
2938 ret = semanage_module_key_set_name(sh, &modkey_tmp, modkey->name); in semanage_direct_remove_key()
2947 (const semanage_module_info_t *)modkey, in semanage_direct_remove_key()
2959 ERR(sh, "Unable to remove module %s at priority %d.", modkey->name, modkey->priority); in semanage_direct_remove_key()
2971 modkey->name, in semanage_direct_remove_key()
2972 modkey->name); in semanage_direct_remove_key()
2977 (const semanage_module_info_t *)modkey, in semanage_direct_remove_key()
2997 if (modkey->priority > modinfo->priority) { in semanage_direct_remove_key()