• Home
  • Raw
  • Download

Lines Matching refs:conf

338 static int semanage_conf_init(semanage_conf_t * conf)
340 conf->store_type = SEMANAGE_CON_DIRECT;
341 conf->store_path = strdup(basename(selinux_policy_root()));
342 conf->ignoredirs = NULL;
343 conf->store_root_path = strdup("/var/lib/selinux");
344 conf->compiler_directory_path = strdup("/usr/libexec/selinux/hll");
345 conf->policyvers = sepol_policy_kern_vers_max();
346 conf->target_platform = SEPOL_TARGET_SELINUX;
347 conf->expand_check = 1;
348 conf->handle_unknown = -1;
349 conf->usepasswd = 1;
350 conf->file_mode = 0644;
351 conf->bzip_blocksize = 9;
352 conf->bzip_small = 0;
353 conf->ignore_module_cache = 0;
354 conf->remove_hll = 0;
356 conf->save_previous = 0;
357 conf->save_linked = 0;
359 if ((conf->load_policy =
365 conf->load_policy->path = strdup("/sbin/load_policy");
367 conf->load_policy->path = strdup("/usr/sbin/load_policy");
369 if (conf->load_policy->path == NULL) {
372 conf->load_policy->args = NULL;
374 if ((conf->setfiles =
379 conf->setfiles->path = strdup("/sbin/setfiles");
381 conf->setfiles->path = strdup("/usr/sbin/setfiles");
383 if ((conf->setfiles->path == NULL) ||
384 (conf->setfiles->args = strdup("-q -c $@ $<")) == NULL) {
388 if ((conf->sefcontext_compile =
393 conf->sefcontext_compile->path = strdup("/sbin/sefcontext_compile");
395 conf->sefcontext_compile->path = strdup("/usr/sbin/sefcontext_compile");
397 if ((conf->sefcontext_compile->path == NULL) ||
398 (conf->sefcontext_compile->args = strdup("$@")) == NULL) {
451 void semanage_conf_destroy(semanage_conf_t * conf) in semanage_conf_destroy() argument
453 if (conf != NULL) { in semanage_conf_destroy()
454 free(conf->store_path); in semanage_conf_destroy()
455 free(conf->ignoredirs); in semanage_conf_destroy()
456 free(conf->store_root_path); in semanage_conf_destroy()
457 free(conf->compiler_directory_path); in semanage_conf_destroy()
458 semanage_conf_external_prog_destroy(conf->load_policy); in semanage_conf_destroy()
459 semanage_conf_external_prog_destroy(conf->setfiles); in semanage_conf_destroy()
460 semanage_conf_external_prog_destroy(conf->sefcontext_compile); in semanage_conf_destroy()
461 semanage_conf_external_prog_destroy(conf->mod_prog); in semanage_conf_destroy()
462 semanage_conf_external_prog_destroy(conf->linked_prog); in semanage_conf_destroy()
463 semanage_conf_external_prog_destroy(conf->kernel_prog); in semanage_conf_destroy()
464 free(conf); in semanage_conf_destroy()