| /freebsd/contrib/unbound/daemon/ |
| H A D | unbound.c | 553 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 563 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup() 564 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 565 strncmp(cfg->pidfile, cfg->chrootdir, in perform_setup() 566 strlen(cfg->chrootdir))==0)); in perform_setup() 623 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup() 624 if(chdir(cfg->chrootdir)) { in perform_setup() 626 cfg->chrootdir, strerror(errno)); in perform_setup() 628 verbose(VERB_QUERY, "chdir to %s", cfg->chrootdir); in perform_setup() 629 if(chroot(cfg->chrootdir)) in perform_setup() [all …]
|
| H A D | remote.c | 3164 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen() 5199 m += getmem_str(cfg->chrootdir); in config_file_getmem() 5956 COPY_VAR_ptr(chrootdir); in fr_atomic_copy_cfg()
|
| /freebsd/contrib/unbound/smallapp/ |
| H A D | unbound-checkconf.c | 580 const char* chrootdir, struct config_file* cfg) in check_chroot_string() argument 587 if(chrootdir && chrootdir[0]) in check_chroot_string() 589 "chrootdir %s", desc, str, chrootdir); in check_chroot_string() 602 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist() argument 606 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist() 613 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist_wild() argument 627 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist_wild() 714 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 715 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks() 717 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/validator/ |
| H A D | val_anchor.c | 1081 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1082 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1083 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1094 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1095 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1096 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() [all...] |
| /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() 437 free(cfg->chrootdir); in config_create_forlib() 438 cfg->chrootdir = NULL; in config_create_forlib() 689 else S_STR("chroot:", chrootdir) in config_set_option() 1195 else O_STR(opt, "chroot", chrootdir) in config_get_option() 1740 free(cfg->chrootdir); in config_delete() 2543 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot() 2544 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot() 2549 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot() 2551 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 | 338 char* chrootdir; member
|
| H A D | configparser.y | 1351 free(cfg_parser->cfg->chrootdir); 1352 cfg_parser->cfg->chrootdir = $2;
|
| H A D | configparser.c | 4287 free(cfg_parser->cfg->chrootdir); in yyparse() 4288 cfg_parser->cfg->chrootdir = (yyvsp[0].str); in yyparse()
|
| /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 | |
| /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/blocklist/etc/rc.d/ |
| H A D | blocklistd | 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| /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() 5226 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in xfr_write_after_update() 5227 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in xfr_write_after_update() 5228 zfilename += strlen(cfg->chrootdir); in xfr_write_after_update()
|
| /freebsd/contrib/unbound/winrc/ |
| H A D | win_svc.c | 350 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in service_init()
|
| /freebsd/contrib/unbound/doc/ |
| H A D | README | 101 enabled, may be solved with a symbolic link to /dev/urandom from <chrootdir>.
|