/freebsd/contrib/unbound/daemon/ |
H A D | unbound.c | 526 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 536 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup() 537 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 538 strncmp(cfg->pidfile, cfg->chrootdir, 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() 599 cfg->chrootdir, strerror(errno)); in perform_setup() 601 verbose(VERB_QUERY, "chdir to %s", cfg->chrootdir); in perform_setup() 602 if(chroot(cfg->chrootdir)) in perform_setup() [all …]
|
H A D | remote.c | 2740 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
|
/freebsd/contrib/unbound/smallapp/ |
H A D | unbound-checkconf.c | 541 const char* chrootdir, struct config_file* cfg) in check_chroot_string() argument 548 if(chrootdir && chrootdir[0]) in check_chroot_string() 550 "chrootdir %s", desc, str, chrootdir); in check_chroot_string() 563 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist() argument 567 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist() 574 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist_wild() argument 588 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist_wild() 673 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 674 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks() 676 cfg->chrootdir); in morechecks() [all …]
|
/freebsd/usr.sbin/unbound/setup/ |
H A D | local-unbound-setup.sh | 45 chrootdir="" 101 chrootdir="${workdir}" 106 chrootdir="" 109 if [ -z "${chrootdir}" ] ; then 258 echo " chroot: ${chrootdir}"
|
/freebsd/usr.sbin/bsdinstall/distextract/ |
H A D | distextract.c | 61 char *chrootdir; in main() local 125 chrootdir = getenv("BSDINSTALL_CHROOT"); in main() 126 if (chrootdir != NULL && chdir(chrootdir) != 0) { in main() 129 chrootdir, strerror(errno)); in main()
|
/freebsd/contrib/unbound/util/ |
H A D | log.c | 89 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 D | config_file.c | 197 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit; in config_create() 431 free(cfg->chrootdir); in config_create_forlib() 432 cfg->chrootdir = NULL; in config_create_forlib() 661 else S_STR("chroot:", chrootdir) in config_set_option() 1165 else O_STR(opt, "chroot", chrootdir) in config_get_option() 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() 2472 len += strlen(cfg->chrootdir); in strlen_after_chroot() [all …]
|
H A D | log.h | 83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
|
H A D | config_file.h | 335 char* chrootdir; member
|
H A D | configparser.y | 1341 free(cfg_parser->cfg->chrootdir); 1342 cfg_parser->cfg->chrootdir = $2;
|
H A D | configparser.c | 4275 free(cfg_parser->cfg->chrootdir); in yyparse() 4276 cfg_parser->cfg->chrootdir = (yyvsp[0].str); in yyparse()
|
/freebsd/contrib/unbound/validator/ |
H A D | val_anchor.c | 1078 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/contrib/unbound/iterator/ |
H A D | iter_hints.c | 430 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/contrib/unbound/dnstap/ |
H A D | dnstap.c | 163 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 D | dtstream.c | 363 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/contrib/unbound/contrib/ |
H A D | drop-tld.diff | 32 /** chrootdir, if not "" or chroot will be done */ 33 char* chrootdir;
|
/freebsd/libexec/ftpd/ |
H A D | ftpd.c | 112 char *chrootdir; variable 1462 chrootdir = NULL; in pass() 1493 (chrootdir = strtok(residue, " \t")) != NULL) { in pass() 1494 if (chrootdir[0] != '/') in pass() 1495 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass() 1497 chrootdir = strdup(chrootdir); /* make it permanent */ in pass() 1498 if (chrootdir == NULL) in pass() 1506 if (chrootdir == NULL && in pass() 1507 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass() 1513 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass() [all …]
|
/freebsd/contrib/blocklist/etc/rc.d/ |
H A D | blacklistd | 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntpd.c | 212 const char *chrootdir; /* directory to chroot to */ 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); 215 const char *chrootdir; /* directory to chroot to */ global() variable
|
H A D | cmd_args.c | 85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
|
/freebsd/contrib/unbound/dnscrypt/ |
H A D | dnscrypt.c | 563 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/contrib/ntp/include/ |
H A D | ntpd.h | 613 extern const char *chrootdir; /* directory to chroot() to */
|
/freebsd/contrib/unbound/services/ |
H A D | authzone.c | 1505 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/contrib/unbound/doc/ |
H A D | README | 101 enabled, may be solved with a symbolic link to /dev/urandom from <chrootdir>.
|
H A D | Changelog | 10569 - 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.
|