Home
last modified time | relevance | path

Searched refs:chrootdir (Results 1 – 18 of 18) sorted by relevance

/NextBSD/contrib/unbound/smallapp/
HDunbound-checkconf.c267 const char* chrootdir, struct config_file* cfg) in check_chroot_string() argument
274 if(chrootdir && chrootdir[0]) in check_chroot_string()
276 "chrootdir %s", desc, str, chrootdir); in check_chroot_string()
289 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist() argument
293 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist()
300 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist_wild() argument
314 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist_wild()
341 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
342 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks()
344 cfg->chrootdir); in morechecks()
[all …]
/NextBSD/contrib/unbound/daemon/
HDunbound.c462 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup()
495 !(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup()
496 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup()
497 strncmp(daemon->pidfile, cfg->chrootdir, in perform_setup()
498 strlen(cfg->chrootdir))==0)); in perform_setup()
542 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup()
543 if(chdir(cfg->chrootdir)) { in perform_setup()
545 cfg->chrootdir, strerror(errno)); in perform_setup()
547 verbose(VERB_QUERY, "chdir to %s", cfg->chrootdir); in perform_setup()
548 if(chroot(cfg->chrootdir)) in perform_setup()
[all …]
HDremote.c2146 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
/NextBSD/contrib/unbound/validator/
HDval_anchor.c1062 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1063 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1064 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1075 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1076 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1077 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1096 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1097 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1098 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1130 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
[all …]
/NextBSD/usr.sbin/unbound/local-setup/
HDlocal-unbound-setup.sh41 chrootdir=""
81 chrootdir="${workdir}"
86 chrootdir=""
89 if [ -z "${chrootdir}" ] ; then
259 echo " chroot: ${chrootdir}"
/NextBSD/contrib/unbound/util/
HDconfig_file.c149 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit; in config_create()
255 free(cfg->chrootdir); in config_create_forlib()
256 cfg->chrootdir = NULL; in config_create_forlib()
409 else S_STR("chroot:", chrootdir) in config_set_option()
683 else O_STR(opt, "chroot", chrootdir) in config_get_option()
911 free(cfg->chrootdir); in config_delete()
1289 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot()
1290 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot()
1295 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot()
1297 len += strlen(cfg->chrootdir); in strlen_after_chroot()
[all …]
HDlog.c87 log_init(const char* filename, int use_syslog, const char* chrootdir) in log_init() argument
137 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, in log_init()
138 strlen(chrootdir)) == 0) in log_init()
139 filename += strlen(chrootdir); in log_init()
HDlog.h83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
HDconfig_file.h202 char* chrootdir; member
HDconfigparser.y483 free(cfg_parser->cfg->chrootdir);
484 cfg_parser->cfg->chrootdir = $2;
/NextBSD/usr.sbin/bsdinstall/distextract/
HDdistextract.c64 char *chrootdir; in main() local
136 chrootdir = getenv("BSDINSTALL_CHROOT"); in main()
137 if (chrootdir != NULL && chdir(chrootdir) != 0) { in main()
140 chrootdir, strerror(errno)); in main()
/NextBSD/contrib/unbound/iterator/
HDiter_hints.c406 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list()
407 strncmp(p->str, cfg->chrootdir, in read_root_hints_list()
408 strlen(cfg->chrootdir)) == 0) in read_root_hints_list()
409 f += strlen(cfg->chrootdir); in read_root_hints_list()
/NextBSD/contrib/ntp/ntpd/
HDntpd.c182 const char *chrootdir; /* directory to chroot to */ variable
978 if (chrootdir ) {
980 if (chdir(chrootdir)) {
981 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir);
984 if (chroot(chrootdir)) {
985 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
HDcmd_args.c85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
/NextBSD/libexec/ftpd/
HDftpd.c127 char *chrootdir; variable
1499 chrootdir = NULL; in pass()
1525 (chrootdir = strtok(residue, " \t")) != NULL) { in pass()
1526 if (chrootdir[0] != '/') in pass()
1527 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass()
1529 chrootdir = strdup(chrootdir); /* make it permanent */ in pass()
1530 if (chrootdir == NULL) in pass()
1538 if (chrootdir == NULL && in pass()
1539 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass()
1545 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass()
[all …]
/NextBSD/contrib/ntp/include/
HDntpd.h562 extern const char *chrootdir; /* directory to chroot() to */
/NextBSD/contrib/unbound/doc/
HDREADME100 enabled, may be solved with a symbolic link to /dev/random from <chrootdir>.
HDChangelog4350 - documented /dev/random symlink from chrootdir as FAQ entry.
4559 - check trailing / on chrootdir in checkconf.
4560 - check if root hints and anchor files are in chrootdir.