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);
1835 semanage_module_key_t *modkey, in semanage_direct_extract() argument
1854 (const semanage_module_info_t *)modkey, in semanage_direct_extract()
1869 modkey, in semanage_direct_extract()
1932 semanage_module_key_t modkey; in semanage_direct_remove() local
1933 ret = semanage_module_key_init(sh, &modkey); in semanage_direct_remove()
1939 ret = semanage_module_key_set_priority(sh, &modkey, sh->priority); in semanage_direct_remove()
1945 ret = semanage_module_key_set_name(sh, &modkey, module_name); in semanage_direct_remove()
1951 status = semanage_direct_remove_key(sh, &modkey); in semanage_direct_remove()
2006 const semanage_module_key_t *modkey, in semanage_direct_get_enabled() argument
2010 assert(modkey); in semanage_direct_get_enabled()
2023 modkey, in semanage_direct_get_enabled()
2063 const semanage_module_key_t *modkey, in semanage_direct_set_enabled() argument
2067 assert(modkey); in semanage_direct_set_enabled()
2087 ret = semanage_module_validate_name(modkey->name); in semanage_direct_set_enabled()
2090 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_set_enabled()
2116 modkey, in semanage_direct_set_enabled()
2144 modkey->name); in semanage_direct_set_enabled()
2152 modkey->name); in semanage_direct_set_enabled()
2165 modkey->name); in semanage_direct_set_enabled()
2179 modkey->name); in semanage_direct_set_enabled()
2219 const semanage_module_key_t *modkey, in semanage_direct_get_module_info() argument
2223 assert(modkey); in semanage_direct_get_module_info()
2242 ret = semanage_module_validate_name(modkey->name); in semanage_direct_get_module_info()
2245 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_get_module_info()
2251 if (modkey->priority == 0) { in semanage_direct_get_module_info()
2259 ret = strcmp(modinfos[i].name, modkey->name); in semanage_direct_get_module_info()
2287 ret = semanage_module_validate_priority(modkey->priority); in semanage_direct_get_module_info()
2290 ERR(sh, "Priority %d is invalid.", modkey->priority); in semanage_direct_get_module_info()
2302 ret = semanage_module_info_set_priority(sh, *modinfo, modkey->priority); in semanage_direct_get_module_info()
2308 ret = semanage_module_info_set_name(sh, *modinfo, modkey->name); in semanage_direct_get_module_info()
2420 semanage_module_key_t modkey; in semanage_direct_set_module_info() local
2421 ret = semanage_module_key_init(sh, &modkey); in semanage_direct_set_module_info()
2515 ret = semanage_module_key_set_name(sh, &modkey, modinfo->name); in semanage_direct_set_module_info()
2527 &modkey, in semanage_direct_set_module_info()
2538 ret = semanage_module_set_enabled(sh, &modkey, enabled); in semanage_direct_set_module_info()
2545 semanage_module_key_destroy(sh, &modkey); in semanage_direct_set_module_info()
2910 const semanage_module_key_t *modkey) in semanage_direct_remove_key() argument
2913 assert(modkey); in semanage_direct_remove_key()
2929 ret = semanage_module_validate_priority(modkey->priority); in semanage_direct_remove_key()
2932 ERR(sh, "Priority %d is invalid.", modkey->priority); in semanage_direct_remove_key()
2937 ret = semanage_module_validate_name(modkey->name); in semanage_direct_remove_key()
2940 ERR(sh, "Name %s is invalid.", modkey->name); in semanage_direct_remove_key()
2945 ret = semanage_module_key_set_name(sh, &modkey_tmp, modkey->name); in semanage_direct_remove_key()
2954 (const semanage_module_info_t *)modkey, in semanage_direct_remove_key()
2966 ERR(sh, "Unable to remove module %s at priority %d.", modkey->name, modkey->priority); in semanage_direct_remove_key()
2978 modkey->name, in semanage_direct_remove_key()
2979 modkey->name); in semanage_direct_remove_key()
2984 (const semanage_module_info_t *)modkey, in semanage_direct_remove_key()
3004 if (modkey->priority > modinfo->priority) { in semanage_direct_remove_key()