Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/unbound/daemon/
H A Dunbound.c475 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup()
476 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup()
478 strlen(cfg->chrootdir))==0)); in perform_setup()
535 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup()
536 if(chdir(cfg->chrootdir)) { in perform_setup()
541 if(chroot(cfg->chrootdir)) in perform_setup()
549 strlen(cfg->chrootdir)) == 0) in perform_setup()
555 strlen(cfg->chrootdir))==0) { in perform_setup()
572 if(cfg->chrootdir && cfg->chrootdir[0] && in perform_setup()
573 strncmp(dir, cfg->chrootdir, in perform_setup()
[all …]
H A Dremote.c2492 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
/freebsd-12.1/contrib/unbound/smallapp/
H A Dunbound-checkconf.c372 if(chrootdir && chrootdir[0]) in check_chroot_string()
494 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
495 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks()
497 cfg->chrootdir); in morechecks()
498 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
508 if( (cfg->chrootdir && cfg->chrootdir[0]) || in morechecks()
536 cfg->chrootdir, cfg); in morechecks()
541 cfg->chrootdir, cfg); in morechecks()
545 free(cfg->chrootdir); in morechecks()
546 cfg->chrootdir = NULL; in morechecks()
[all …]
/freebsd-12.1/contrib/unbound/validator/
H A Dval_anchor.c1075 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()
1088 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1089 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1090 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1109 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1110 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1111 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1143 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
[all …]
/freebsd-12.1/usr.sbin/unbound/setup/
H A Dlocal-unbound-setup.sh46 chrootdir=""
102 chrootdir="${workdir}"
107 chrootdir=""
110 if [ -z "${chrootdir}" ] ; then
259 echo " chroot: ${chrootdir}"
/freebsd-12.1/usr.sbin/bsdinstall/distextract/
H A Ddistextract.c66 char *chrootdir; in main() local
138 chrootdir = getenv("BSDINSTALL_CHROOT"); in main()
139 if (chrootdir != NULL && chdir(chrootdir) != 0) { in main()
142 chrootdir, strerror(errno)); in main()
/freebsd-12.1/contrib/unbound/util/
H A Dlog.c86 log_init(const char* filename, int use_syslog, const char* chrootdir) in log_init() argument
142 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, in log_init()
143 strlen(chrootdir)) == 0) in log_init()
144 filename += strlen(chrootdir); in log_init()
H A Dconfig_file.c355 free(cfg->chrootdir); in config_create_forlib()
356 cfg->chrootdir = NULL; in config_create_forlib()
1395 free(cfg->chrootdir); in config_delete()
2037 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot()
2038 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot()
2043 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot()
2060 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot()
2084 if(cfg->chrootdir && cfg->chrootdir[0] && in fname_after_chroot()
2085 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in fname_after_chroot()
2092 if(cfg->chrootdir && cfg->chrootdir[0]) { in fname_after_chroot()
[all …]
H A Dlog.h83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
H A Dconfig_file.h279 char* chrootdir; member
H A Dconfigparser.y1030 free(cfg_parser->cfg->chrootdir);
1031 cfg_parser->cfg->chrootdir = $2;
/freebsd-12.1/contrib/unbound/iterator/
H A Diter_hints.c419 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list()
420 strncmp(p->str, cfg->chrootdir, in read_root_hints_list()
421 strlen(cfg->chrootdir)) == 0) in read_root_hints_list()
422 f += strlen(cfg->chrootdir); in read_root_hints_list()
/freebsd-12.1/contrib/unbound/contrib/
H A Ddrop-tld.diff32 /** chrootdir, if not "" or chroot will be done */
33 char* chrootdir;
/freebsd-12.1/libexec/ftpd/
H A Dftpd.c130 char *chrootdir; variable
1519 chrootdir = NULL; in pass()
1549 (chrootdir = strtok(residue, " \t")) != NULL) { in pass()
1550 if (chrootdir[0] != '/') in pass()
1551 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass()
1553 chrootdir = strdup(chrootdir); /* make it permanent */ in pass()
1554 if (chrootdir == NULL) in pass()
1562 if (chrootdir == NULL && in pass()
1563 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass()
1569 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass()
[all …]
/freebsd-12.1/contrib/blacklist/etc/rc.d/
H A Dblacklistd33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
/freebsd-12.1/contrib/ntp/ntpd/
H A Dntpd.c226 const char *chrootdir; /* directory to chroot to */ variable
1240 if (chrootdir ) {
1242 if (chdir(chrootdir)) {
1243 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir);
1246 if (chroot(chrootdir)) {
1247 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
H A Dcmd_args.c85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
/freebsd-12.1/contrib/unbound/dnscrypt/
H A Ddnscrypt.c563 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in dnsc_chroot_path()
564 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dnsc_chroot_path()
565 nm += strlen(cfg->chrootdir); in dnsc_chroot_path()
/freebsd-12.1/contrib/unbound/services/
H A Dauthzone.c1498 if(cfg->chrootdir && cfg->chrootdir[0] && in az_parse_file()
1499 strncmp(incfile, cfg->chrootdir, in az_parse_file()
1500 strlen(cfg->chrootdir)) == 0) in az_parse_file()
1501 incfile += strlen(cfg->chrootdir); in az_parse_file()
1570 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in auth_zone_read_zonefile()
1571 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in auth_zone_read_zonefile()
1572 zfilename += strlen(cfg->chrootdir); in auth_zone_read_zonefile()
4910 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in xfr_write_after_update()
4911 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in xfr_write_after_update()
4912 zfilename += strlen(cfg->chrootdir); in xfr_write_after_update()
/freebsd-12.1/contrib/ntp/include/
H A Dntpd.h568 extern const char *chrootdir; /* directory to chroot() to */
/freebsd-12.1/contrib/unbound/doc/
H A DREADME102 enabled, may be solved with a symbolic link to /dev/urandom from <chrootdir>.
H A DChangelog7505 - documented /dev/random symlink from chrootdir as FAQ entry.
7714 - check trailing / on chrootdir in checkconf.
7715 - check if root hints and anchor files are in chrootdir.