Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/unbound/daemon/
H A Dunbound.c536 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup()
537 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup()
539 strlen(cfg->chrootdir))==0)); in perform_setup()
596 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup()
597 if(chdir(cfg->chrootdir)) { in perform_setup()
602 if(chroot(cfg->chrootdir)) in perform_setup()
610 strlen(cfg->chrootdir)) == 0) in perform_setup()
616 strlen(cfg->chrootdir))==0) { in perform_setup()
633 if(cfg->chrootdir && cfg->chrootdir[0] && in perform_setup()
634 strncmp(dir, cfg->chrootdir, in perform_setup()
[all …]
H A Dremote.c2740 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
/freebsd-14.2/contrib/unbound/smallapp/
H A Dunbound-checkconf.c548 if(chrootdir && chrootdir[0]) in check_chroot_string()
673 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
674 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks()
676 cfg->chrootdir); in morechecks()
677 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
687 if( (cfg->chrootdir && cfg->chrootdir[0]) || in morechecks()
735 cfg->chrootdir, cfg); in morechecks()
739 free(cfg->chrootdir); in morechecks()
740 cfg->chrootdir = NULL; in morechecks()
917 cfg->chrootdir, cfg); in morechecks()
[all …]
/freebsd-14.2/usr.sbin/unbound/setup/
H A Dlocal-unbound-setup.sh45 chrootdir=""
101 chrootdir="${workdir}"
106 chrootdir=""
109 if [ -z "${chrootdir}" ] ; then
258 echo " chroot: ${chrootdir}"
/freebsd-14.2/usr.sbin/bsdinstall/distextract/
H A Ddistextract.c62 char *chrootdir; in main() local
126 chrootdir = getenv("BSDINSTALL_CHROOT"); in main()
127 if (chrootdir != NULL && chdir(chrootdir) != 0) { in main()
130 chrootdir, strerror(errno)); in main()
/freebsd-14.2/contrib/unbound/util/
H A Dlog.c89 log_init(const char* filename, int use_syslog, const char* chrootdir) in log_init() argument
145 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, in log_init()
146 strlen(chrootdir)) == 0) in log_init()
147 filename += strlen(chrootdir); in log_init()
H A Dconfig_file.c431 free(cfg->chrootdir); in config_create_forlib()
432 cfg->chrootdir = NULL; in config_create_forlib()
1663 free(cfg->chrootdir); in config_delete()
2464 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot()
2465 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot()
2470 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot()
2487 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot()
2511 if(cfg->chrootdir && cfg->chrootdir[0] && in fname_after_chroot()
2512 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in fname_after_chroot()
2519 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.h335 char* chrootdir; member
H A Dconfigparser.y1341 free(cfg_parser->cfg->chrootdir);
1342 cfg_parser->cfg->chrootdir = $2;
H A Dconfigparser.c4275 free(cfg_parser->cfg->chrootdir); in yyparse()
4276 cfg_parser->cfg->chrootdir = (yyvsp[0].str); in yyparse()
/freebsd-14.2/contrib/unbound/validator/
H A Dval_anchor.c1078 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1079 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1080 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1091 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1092 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1093 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1115 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1116 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1117 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
/freebsd-14.2/contrib/unbound/iterator/
H A Diter_hints.c430 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list()
431 strncmp(p->str, cfg->chrootdir, in read_root_hints_list()
432 strlen(cfg->chrootdir)) == 0) in read_root_hints_list()
433 f += strlen(cfg->chrootdir); in read_root_hints_list()
/freebsd-14.2/contrib/unbound/dnstap/
H A Ddnstap.c163 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(p, in dt_create()
164 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dt_create()
165 p += strlen(cfg->chrootdir); in dt_create()
H A Ddtstream.c363 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in dt_io_thread_apply_cfg()
364 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dt_io_thread_apply_cfg()
365 nm += strlen(cfg->chrootdir); in dt_io_thread_apply_cfg()
/freebsd-14.2/contrib/unbound/contrib/
H A Ddrop-tld.diff32 /** chrootdir, if not "" or chroot will be done */
33 char* chrootdir;
/freebsd-14.2/contrib/blocklist/etc/rc.d/
H A Dblacklistd33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
/freebsd-14.2/libexec/ftpd/
H A Dftpd.c127 char *chrootdir; variable
1477 chrootdir = NULL; in pass()
1508 (chrootdir = strtok(residue, " \t")) != NULL) { in pass()
1509 if (chrootdir[0] != '/') in pass()
1510 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass()
1512 chrootdir = strdup(chrootdir); /* make it permanent */ in pass()
1513 if (chrootdir == NULL) in pass()
1521 if (chrootdir == NULL && in pass()
1522 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass()
1528 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass()
[all …]
/freebsd-14.2/contrib/ntp/ntpd/
H A Dntpd.c212 const char *chrootdir; /* directory to chroot to */ variable
1236 if (chrootdir ) {
1238 if (chdir(chrootdir)) {
1239 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir);
1242 if (chroot(chrootdir)) {
1243 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
H A Dcmd_args.c85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
/freebsd-14.2/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-14.2/contrib/ntp/include/
H A Dntpd.h613 extern const char *chrootdir; /* directory to chroot() to */
/freebsd-14.2/contrib/unbound/services/
H A Dauthzone.c1505 if(cfg->chrootdir && cfg->chrootdir[0] && in az_parse_file()
1506 strncmp(incfile, cfg->chrootdir, in az_parse_file()
1507 strlen(cfg->chrootdir)) == 0) in az_parse_file()
1508 incfile += strlen(cfg->chrootdir); in az_parse_file()
1577 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in auth_zone_read_zonefile()
1578 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in auth_zone_read_zonefile()
1579 zfilename += strlen(cfg->chrootdir); in auth_zone_read_zonefile()
5230 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in xfr_write_after_update()
5231 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in xfr_write_after_update()
5232 zfilename += strlen(cfg->chrootdir); in xfr_write_after_update()
/freebsd-14.2/contrib/unbound/doc/
H A DREADME101 enabled, may be solved with a symbolic link to /dev/urandom from <chrootdir>.
H A DChangelog10569 - documented /dev/random symlink from chrootdir as FAQ entry.
10778 - check trailing / on chrootdir in checkconf.
10779 - check if root hints and anchor files are in chrootdir.